the components of the vector
returns a new vector that is the cross product of the current vector and the vector passed in as an argument
a new vector that is the cross product of the current vector and the vector passed in as an argument
returns true if the current vector and the vector passed in as an argument have opposite directions
true if the current vector and the vector passed in as an argument have opposite directions
returns a new vector that is the current vector projected onto the vector passed in as an argument
a new vector that is the current vector projected onto the vector passed in as an argument
const vector = new Vector([1,2,3])
const vector2 = new Vector([1,1,1])
vector.projectOn(vector2) // returns a new vector with the same direction as vector2 but with a length of 2
vector.projectOn(vector2).length() // returns 2
vector.projectOn(vector2).haveSameDirectionWith(vector2) // returns true
vector.projectOn(vector2).isPerpendicularTo(vector2) // returns true
Static
emptyStatic
hstackStatic
onesStatic
vstackStatic
zeros
Description
a vector class that uses tensorflow tensors to represent vectors
Export
Vector
Property
the components of the vector