The Vector4D type exposes the following members.

Operators

  NameDescription
Public operatorStatic memberAddition(Double, Vector4D)
value + vector, adds a value to all vector components
Public operatorStatic memberAddition(Vector4D, Double)
vector + value, adds a value to all vector components
Public operatorStatic memberAddition(Vector4D, Vector4D)
vector + vector, adds the values of two vectors component wise
Public operatorStatic memberBitwiseAnd
4d-vector & 4d-vector, performs a quaternion multiplication defined as: w = v1.w * v2.w - (v1.xyz | v2.xyz) xyz = v1.xyz * v2.w + v2.xyz * v1.w + (v1.xyz & v2.xyz) code is: x = v1.w*v2.x + v1.x*v2.w + v1.y*v2.z - v1.z*v2.y y = v1.w*v2.y + v1.y*v2.w + v1.z*v2.x - v1.x*v2.z z = v1.w*v2.z + v1.z*v2.w + v1.x*v2.y - v1.y*v2.x w = v1.w*v2.w - v1.x*v2.x - v1.y*v2.y - v1.z*v2.z
Public operatorStatic memberBitwiseOr
vector | vector, dot product for vectors, that is the sum of all component wise products
Public operatorStatic memberDivision(Double, Vector4D)
value / vector, divides a value by all vector components
Public operatorStatic memberDivision(Vector4D, Double)
vector / value, divides all vector components by a value
Public operatorStatic memberDivision(Vector4D, Vector4D)
vector / vector, divides the values of two vectors component wise
Public operatorStatic memberEquality
vector == vector, checks if the two vectors are equal
Public operatorStatic memberGreaterThan
vector > value, compares all vector components to a value
Public operatorStatic memberGreaterThanOrEqual
vector >= value, compares all vector components to a value
Public operatorStatic memberInequality
vector != vector, checks if the two vectors are not equal
Public operatorStatic memberLessThan
vector < value, compares all vector components to a value
Public operatorStatic memberLessThanOrEqual
vector <= value, compares all vector components to a value
Public operatorStatic memberLogicalNot
! vector, calculates the length of the vector
Public operatorStatic memberModulus(Double, Vector4D)
value % vector, a value modulo all vector components
Public operatorStatic memberModulus(Vector4D, Double)
vector % value, all vector components modulo a value
Public operatorStatic memberModulus(Vector4D, Vector4D)
vector % vector, component wise modulo for vectors
Public operatorStatic memberMultiply(Double, Vector4D)
value * vector, multiplies a value by all vector components
Public operatorStatic memberMultiply(Vector4D, Double)
vector * value, multiplies a value by all vector components
Public operatorStatic memberMultiply(Vector4D, Vector4D)
vector * vector, multiplies the values of two vectors component wise
Public operatorStatic memberOnesComplement
~ vector, normalizes a vector
Public operatorStatic memberSubtraction(Double, Vector4D)
value - vector, subtracts all vector components from a value
Public operatorStatic memberSubtraction(Vector4D, Double)
vector - value, subtracts a value from all vector components
Public operatorStatic memberSubtraction(Vector4D, Vector4D)
vector - vector, subtracts the components of v2 from the components of v1
Public operatorStatic memberUnaryNegation
- vector, flips the sign off all vector components
Public operatorStatic memberUnaryPlus
+ vector, makes no changes to a vector

See Also