Click or drag to resize

Vector Operators and Type Conversions

[This is preliminary documentation and is subject to change.]

The Vector type exposes the following members.

Operators
  NameDescription
Public operatorStatic memberAddition
Add 2 vectors together, resulting in a new vector
Public operatorStatic memberBitwiseOr
Performs the vector dot product operation
Public operatorStatic memberDivision
Perform scalar division on a vector (= scale a vector) If the scalar value is bigger than 1, it will change the magnitude of the vector (make it shorter) If the scalar value is lesser than 1 but bigger than 0, it will change the magnitude of the vector (make it longer) If the scalar value is bigger than -1 but lesser than 0, it will reverse the direction and change its magnitude (make it longer) If the scalar value is -1, it will reverse the direction of the vector but not change its magnitude If the scalar value is lesser than -1, it will reverse the direction and change its magnitude (make it shorter)
Public operatorStatic memberEquality
Checks if both vectors are equal
Public operatorStatic member(Point to Vector)
Convert a Point to a vector
Public operatorStatic member(Vector3D to Vector)
Public operatorStatic memberInequality
Checks if both vectors are not equal
Public operatorStatic memberLogicalNot
Create a unit vector from the provided vector. (= vector normalization)
Public operatorStatic memberMultiply(Double, Vector)
Perform scalar multiplication on a vector (= scale a vector). If the scalar value is bigger than 1, it will change the magnitude of the vector (make it longer). If the scalar value is -1, it will reverse the direction of the vector but not change its magnitude If the scalar value is lesser than -1, it will reverse the direction and change the magnitude of the vector (make it longer).
Public operatorStatic memberMultiply(Vector, Vector)
Performs the vector cross product operation.
Public operatorStatic memberMultiply(Vector, Double)
Perform scalar multiplication on a vector (= scale a vector). If the scalar value is bigger than 1, it will change the magnitude of the vector (make it longer). If the scalar value is -1, it will reverse the direction of the vector but not change its magnitude If the scalar value is lesser than -1, it will reverse the direction and change the magnitude of the vector (make it longer).
Public operatorStatic memberOnesComplement
Calculate the magnitude (= size) of the provided vector
Public operatorStatic memberSubtraction
Subtract 2 vectors from each other, resulting in a new vector
Public operatorStatic memberUnaryNegation
Negate a vector, reversing its direction
Top
See Also