Vector Operators and Type Conversions |
[This is preliminary documentation and is subject to change.]
The Vector type exposes the following members.
Name | Description | |
---|---|---|
Addition |
Add 2 vectors together, resulting in a new vector
| |
BitwiseOr |
Performs the vector dot product operation
| |
Division |
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)
| |
Equality |
Checks if both vectors are equal
| |
(Point to Vector) |
Convert a Point to a vector
| |
(Vector3D to Vector) | ||
Inequality |
Checks if both vectors are not equal
| |
LogicalNot |
Create a unit vector from the provided vector. (= vector normalization)
| |
Multiply(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).
| |
Multiply(Vector, Vector) |
Performs the vector cross product operation.
| |
Multiply(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).
| |
OnesComplement |
Calculate the magnitude (= size) of the provided vector
| |
Subtraction |
Subtract 2 vectors from each other, resulting in a new vector
| |
UnaryNegation |
Negate a vector, reversing its direction
|