Click or drag to resize
DigitalRuneVector4D Methods

The Vector4D type exposes the following members.

Methods
  NameDescription
Public methodAbsolute
Sets each vector component to its absolute value.
Public methodStatic memberAbsolute(Vector4D)
Returns a vector with the absolute values of the elements of the given vector.
Public methodStatic memberAdd
Adds two vectors.
Public methodStatic memberAreNumericallyEqual(Vector4D, Vector4D)
Determines whether two vectors are equal (regarding the tolerance EpsilonD).
Public methodStatic memberAreNumericallyEqual(Vector4D, Vector4D, Double)
Determines whether two vectors are equal (regarding a specific tolerance).
Public methodClamp(Double, Double)
Clamps the vector components to the range [min, max].
Public methodStatic memberClamp(Vector4D, Double, Double)
Returns a vector with the vector components clamped to the range [min, max].
Public methodClampToZero
Clamps near-zero vector components to zero.
Public methodClampToZero(Double)
Clamps near-zero vector components to zero.
Public methodStatic memberClampToZero(Vector4D)
Returns a vector with near-zero vector components clamped to 0.
Public methodStatic memberClampToZero(Vector4D, Double)
Returns a vector with near-zero vector components clamped to 0.
Public methodStatic memberDivide(Vector4D, Vector4D)
Divides the components of a vector by the components of another vector.
Public methodStatic memberDivide(Vector4D, Double)
Divides a vector by a scalar.
Public methodStatic memberDot
Returns the dot product of two vectors.
Public methodEquals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Vector4D)
Indicates whether the current object is equal to another object of the same type.
Public methodStatic memberFromXna
Converts this Vector4D (DigitalRune Mathematics) to Vector4 (XNA Framework).
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberHomogeneousDivide
Performs the homogeneous divide or perspective divide: X, Y and Z are divided by W.
Public methodStatic memberMax
Returns a vector that contains the highest value from each matching pair of components.
Public methodStatic memberMin
Returns a vector that contains the lowest value from each matching pair of components.
Public methodStatic memberMultiply(Double, Vector4D)
Multiplies a vector by a scalar.
Public methodStatic memberMultiply(Vector4D, Vector4D)
Multiplies the components of two vectors by each other.
Public methodStatic memberNegate
Negates a vector.
Public methodNormalize
Normalizes the vector.
Public methodStatic memberParse(String)
Converts the string representation of a 4-dimensional vector to its Vector4D equivalent.
Public methodStatic memberParse(String, IFormatProvider)
Converts the string representation of a 4-dimensional vector in a specified culture-specific format to its Vector4D equivalent.
Public methodProjectTo(Vector4D)
Sets this vector to its projection onto the axis given by the target vector.
Public methodStatic memberProjectTo(Vector4D, Vector4D)
Projects a vector onto an axis given by the target vector.
Public methodStatic memberSubtract
Subtracts a vector from a vector.
Public methodToArray
Converts this vector to an array of 4 double values.
Public methodToList
Converts this vector to a list of 4 double values.
Public methodToString
Returns the string representation of this vector.
(Overrides ValueTypeToString.)
Public methodToString(IFormatProvider)
Returns the string representation of this vector using the specified culture-specific format information.
Public methodToVector4F
Converts this Vector4D to Vector4F.
Public methodToVectorD
Converts this Vector4D to VectorD.
Public methodToXna
Converts this Vector4D (DigitalRune Mathematics) to Vector4 (XNA Framework).
Public methodTryNormalize
Tries to normalize the vector.
Top
See Also