Namespace rotate90
Defined in: naview.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Rotates a 2d-vector 90 degrees in the clockwise or anticlockwise directions
|
Namespace Detail
rotate90
Rotates a 2d-vector 90 degrees in the clockwise or anticlockwise directions
- Parameters:
- {Array} v1
- array of coordinates 1
- {String} direction
- String that defines clockwise or anticlockwise 90 rotation of vector
- {Array} centerp
- array of coordinates to center rotated vector