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

The Vector type exposes the following members.

Constructors

  NameDescription
Public methodVectorOverloaded.

Methods

  NameDescription
Public methodAngle
Return the Euler Angle (in Radians) between this vector and vector B
Public methodAngleCosine
Return the Dot Product between this vector and Vector B
Public methodClassifyVector
Classify where a point is in relation to a plane (defined by a point/normal). Returns: 0 if approximately perpendicular 1 if in "front" -1 if "behind"
Public methodCombine
Public methodCrossProduct
Set this vector to the cross product of A and B
Public methodDistanceTo
Compute the distance from this vector to vector B
Public methodDotProduct
Return the Dot product of this Vector and Vector B;
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInvert
Invert this vector
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMinus
Subtracts Vector B from this Vector
Public methodNormalOverloaded.
Public methodNormalize
Make this vector of length 1
Public methodPlus
Add Vector B to this vector, overriding this vector.
Public methodRender
Render the Vector data as an OpenGL Vertex
Public methodRenderAsNormal
Render the vector as an OpenGL Normal
Public methodRotateOverloaded.
Public methodScale
Scale the vector by a given value
Public methodScaleVector
Scale a vector using another vector as reference. X multiplies by scalefactor.X, etc..
Public methodToString
Convert the vector to a string, in the format "(X,Y,Z)", i.e. (-0.14,45,23.5)
(Overrides ValueType..::.ToString()()().)
Public methodTransform
Transform the vector by a given 4x4 matrix

Operators

  NameDescription
Public operatorStatic memberAddition
A plus B, results in new Vector C
Public operatorStatic memberBitwiseOr
Public operatorStatic memberEquality
Determines whether Vector A equals Vector B
Public operatorStatic memberInequality
Determines whether Vector A does NOT equal Vector B
Public operatorStatic memberMultiplyOverloaded.
Public operatorStatic memberSubtraction
A minus B, results in new vector C

Fields

  NameDescription
Public fieldData
Internal array of 4 doubles representing the vector

Properties

  NameDescription
Public propertyfData
Return the Data structure as 4 floats/singles instead of doubles
Public propertyisZero
Returns true if the vector is zero.
Public propertyItem
Make the Data the default property for the struct
Public propertyLength
Get or Set the length of the vector
Public propertyX
Set/Get the X value of the vector
Public propertyY
Set/Get the Y value of the vector
Public propertyZ
Set/Get the Z value of the vector

See Also