VectorD Class |
Namespace: DigitalRune.Mathematics.Algebra
The VectorD type exposes the following members.
Name | Description | |
---|---|---|
VectorD |
Initializes a new instance of the VectorD class with 4 vector elements.
| |
VectorD(IListDouble) |
Initializes a new instance of the VectorD class.
| |
VectorD(Double) |
Initializes a new instance of the VectorD class.
| |
VectorD(Int32) |
Initializes a new instance of the VectorD class.
| |
VectorD(Int32, Double) |
Initializes a new instance of the VectorD class.
| |
VectorD(SerializationInfo, StreamingContext) |
Initializes a new instance of the VectorD class with serialized data.
|
Name | Description | |
---|---|---|
Absolute |
Sets each vector element to its absolute value.
| |
Absolute(VectorD) |
Returns a vector with the absolute values of the elements of the given vector.
| |
Add |
Adds two vectors.
| |
AreNumericallyEqual(VectorD, VectorD) |
Determines whether two vectors are equal (regarding the tolerance
EpsilonD).
| |
AreNumericallyEqual(VectorD, VectorD, Double) |
Determines whether two vectors are equal (regarding a specific tolerance).
| |
Clamp(Double, Double) |
Clamps the vector elements to the range [min, max].
| |
Clamp(VectorD, Double, Double) |
Returns a vector with the vector elements clamped to the range [min, max].
| |
ClampToZero |
Clamps near-zero vector elements to zero.
| |
ClampToZero(Double) |
Clamps near-zero vector elements to zero.
| |
ClampToZero(VectorD) |
Returns a vector with near-zero vector elements clamped to 0.
| |
ClampToZero(VectorD, Double) |
Returns a vector with near-zero vector elements clamped to 0.
| |
Clone |
Clones this instance.
| |
Divide(VectorD, VectorD) |
Divides the elements of a vector by the elements of another
vector.
| |
Divide(VectorD, Double) |
Divides a vector by a scalar.
| |
Dot |
Returns the dot product of two vectors.
| |
Equals(Object) |
Indicates whether this instance and a specified object are equal.
(Overrides ObjectEquals(Object).) | |
Equals(VectorD) |
Indicates whether the current object is equal to another object of the same type.
| |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode |
Returns the hash code for this instance.
(Overrides ObjectGetHashCode.) | |
GetObjectData |
Populates a SerializationInfo with the data needed to serialize the target
object.
| |
GetSchema |
This property is reserved, apply the XmlSchemaProviderAttribute to the class
instead.
| |
GetSubvector |
Gets a subvector of this vector.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Max |
Returns a vector that contains the highest value from each matching pair of components.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Min |
Returns a vector that contains the lowest value from each matching pair of elements.
| |
Multiply(Double, VectorD) |
Multiplies a vector by a scalar.
| |
Multiply(VectorD, VectorD) |
Multiplies the components of two vectors by each other.
| |
Negate |
Negates a vector.
| |
Normalize |
Normalizes the vector.
| |
ProjectTo(VectorD) |
Sets this vector to its projection onto the axis given by the target vector.
| |
ProjectTo(VectorD, VectorD) |
Projects a vector onto an axis given by the target vector.
| |
ReadXml |
Generates an object from its XML representation.
| |
Set(IListDouble) |
Sets the vector elements to the values of the list.
| |
Set(Double) |
Sets all vector elements to the specified value.
| |
Set(Double) |
Sets the vector elements to the values of the array.
| |
Set(VectorD) |
Sets this instance to a copy of the specified vector.
| |
SetSubvector |
Sets a subvector of this instance.
| |
Subtract |
Subtracts a vector from a vector.
| |
ToArray |
Converts this vector to an array of double values.
| |
ToList |
Converts this vector to a list of double values.
| |
ToMatrixD |
Converts this VectorD to MatrixD.
| |
ToString |
Returns the string representation of this vector.
(Overrides ObjectToString.) | |
ToString(IFormatProvider) |
Returns the string representation of this vector using the specified culture-specific format
information.
| |
ToVector2D |
Converts this VectorD to Vector2D.
| |
ToVector3D |
Converts this VectorD to Vector3D.
| |
ToVector4D |
Converts this VectorD to Vector4D.
| |
ToVectorF |
Converts this VectorD to VectorF.
| |
TryNormalize |
Tries to normalize the vector.
| |
WriteXml |
Converts an object into its XML representation.
|
Name | Description | |
---|---|---|
Addition |
Adds two vectors.
| |
Division(VectorD, VectorD) |
Divides the elements of a vector by the elements of another
vector.
| |
Division(VectorD, Double) |
Divides a vector by a scalar.
| |
Equality |
Tests if two vectors are equal.
| |
(VectorD to Double) |
Converts a vector to an array of double values.
| |
(VectorD to ListDouble) |
Converts a vector to a list of double values.
| |
(VectorD to Vector2D) |
Performs an explicit conversion from VectorD to Vector2D.
| |
(VectorD to Vector3D) |
Performs an explicit conversion from VectorD to Vector3D.
| |
(VectorD to Vector4D) |
Performs an explicit conversion from VectorD to Vector4D.
| |
(VectorD to VectorF) |
Performs an explicit conversion from VectorD to VectorF.
| |
(VectorD to MatrixD) |
Performs an explicit conversion from VectorD to MatrixD.
| |
GreaterThan |
Tests if each element of a vector is greater than the corresponding element of another
vector.
| |
GreaterThanOrEqual |
Tests if each element of a vector is greater or equal than the corresponding element of
another vector.
| |
Inequality |
Tests if two vectors are not equal.
| |
LessThan |
Tests if each element of a vector is less than the corresponding element of another vector.
| |
LessThanOrEqual |
Tests if each element of a vector is less or equal than the corresponding element of another
vector.
| |
Multiply(Double, VectorD) |
Multiplies a vector by a scalar.
| |
Multiply(VectorD, VectorD) |
Multiplies the components of two vectors by each other.
| |
Multiply(VectorD, Double) |
Multiplies a vector by a scalar.
| |
Subtraction |
Subtracts a vector from a vector.
| |
UnaryNegation |
Negates a vector.
|
Name | Description | |
---|---|---|
IndexOfLargestElement |
Gets the index (zero-based) of the largest element.
| |
IndexOfSmallestElement |
Gets the index (zero-based) of the smallest element.
| |
InternalArray |
Gets or sets the internal array that is used to store the vector values.
| |
IsNaN |
Gets a value indicating whether a component of the vector is NaN.
| |
IsNumericallyNormalized |
Returns a value indicating whether this vector is normalized (the length is numerically
equal to 1).
| |
IsNumericallyZero |
Returns a value indicating whether this vector has zero size (the length is numerically
equal to 0).
| |
Item |
Gets or sets the component at the specified index.
| |
LargestElement |
Gets the value of the largest element.
| |
Length |
Gets or sets the length of this vector.
| |
LengthSquared |
Returns the squared length of this vector.
| |
Normalized |
Returns the normalized vector.
| |
NumberOfElements |
Gets the number of elements n.
| |
SmallestElement |
Gets the value of the smallest element.
|