New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

typed-array-rotate

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typed-array-rotate

Rotate a data array

0.1.7
latest
Source
npm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Typed Array Rotate

This is image-rotate ported to typed-array-function

*Install

npm install typed-array-rotate

Example

//Allocate storage for result
var source = require("zeros")([512, 512])
var result = require("zeros")([512, 512])

//Rotate the image
require("typed-array-rotate")(result, source, Math.PI / 6.0)

API

require("image-rotate")(output,input,theta[,iX,iY,oX,oY])

Rotates an image by theta radians about the point iX,iY in the source image and translated to the point oX,oY in the output image.

  • output is an array that gets the output of rotating the image
  • input is the image which is rotated
  • theta is the amount to rotate by in radians
  • iX,iY is the point to rotate about (default center of input)
  • oX,oY is the image of the point to rotate about in output image (default center of output)

Returns output

Credits

(c) John B Roll

This READMEmd is cribbed directly from image-rotate.

Keywords

typed-array-function

FAQs

Package last updated on 11 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts