/Vector3

JavaScript Vector Library

Primary LanguageJavaScript

Vector3.js

var point = new Vector3(100,100,100);

clone
copy
set
setX
setY
setZ
addScalar
add
addVectors
subScalar
sub
subVectors
multiply
multiplyScalar
multiplyVectors
divide
divideScalar
getLength
setLength
floor
ceil
round
lengthSq
dot
cross
scale
normalize
rotateX
rotateXTrig
rotateY
rotateYTrig
rotateZ
rotateZTrig
rotateXY
rotateXYTrig
rotateXYZ
rotateXYZTrig
getAngleX
setAngleX
getAngleY
setAngleY
getAngleZ
setAngleZ
distanceTo
angleTo
getPerspective
persProject
persProjectNew