Click or drag to resize
DigitalRuneVectorD Class
Defines an n-dimensional vector (double-precision).
Inheritance Hierarchy
SystemObject
  DigitalRune.Mathematics.AlgebraVectorD

Namespace: DigitalRune.Mathematics.Algebra
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
[SerializableAttribute]
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
public class VectorD : IEquatable<VectorD>, 
	ISerializable, IXmlSerializable

The VectorD type exposes the following members.

Constructors
  NameDescription
Public methodVectorD
Initializes a new instance of the VectorD class with 4 vector elements.
Public methodVectorD(IListDouble)
Initializes a new instance of the VectorD class.
Public methodVectorD(Double)
Initializes a new instance of the VectorD class.
Public methodVectorD(Int32)
Initializes a new instance of the VectorD class.
Public methodVectorD(Int32, Double)
Initializes a new instance of the VectorD class.
Protected methodVectorD(SerializationInfo, StreamingContext)
Initializes a new instance of the VectorD class with serialized data.
Top
Methods
  NameDescription
Public methodAbsolute
Sets each vector element to its absolute value.
Public methodStatic memberAbsolute(VectorD)
Returns a vector with the absolute values of the elements of the given vector.
Public methodStatic memberAdd
Adds two vectors.
Public methodStatic memberAreNumericallyEqual(VectorD, VectorD)
Determines whether two vectors are equal (regarding the tolerance EpsilonD).
Public methodStatic memberAreNumericallyEqual(VectorD, VectorD, Double)
Determines whether two vectors are equal (regarding a specific tolerance).
Public methodClamp(Double, Double)
Clamps the vector elements to the range [min, max].
Public methodStatic memberClamp(VectorD, Double, Double)
Returns a vector with the vector elements clamped to the range [min, max].
Public methodClampToZero
Clamps near-zero vector elements to zero.
Public methodClampToZero(Double)
Clamps near-zero vector elements to zero.
Public methodStatic memberClampToZero(VectorD)
Returns a vector with near-zero vector elements clamped to 0.
Public methodStatic memberClampToZero(VectorD, Double)
Returns a vector with near-zero vector elements clamped to 0.
Public methodClone
Clones this instance.
Public methodStatic memberDivide(VectorD, VectorD)
Divides the elements of a vector by the elements of another vector.
Public methodStatic memberDivide(VectorD, 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 ObjectEquals(Object).)
Public methodEquals(VectorD)
Indicates whether the current object is equal to another object of the same type.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ObjectGetHashCode.)
Protected methodGetObjectData
Populates a SerializationInfo with the data needed to serialize the target object.
Public methodGetSchema
This property is reserved, apply the XmlSchemaProviderAttribute to the class instead.
Public methodGetSubvector
Gets a subvector of this vector.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberMax
Returns a vector that contains the highest value from each matching pair of components.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberMin
Returns a vector that contains the lowest value from each matching pair of elements.
Public methodStatic memberMultiply(Double, VectorD)
Multiplies a vector by a scalar.
Public methodStatic memberMultiply(VectorD, VectorD)
Multiplies the components of two vectors by each other.
Public methodStatic memberNegate
Negates a vector.
Public methodNormalize
Normalizes the vector.
Public methodProjectTo(VectorD)
Sets this vector to its projection onto the axis given by the target vector.
Public methodStatic memberProjectTo(VectorD, VectorD)
Projects a vector onto an axis given by the target vector.
Public methodReadXml
Generates an object from its XML representation.
Public methodSet(IListDouble)
Sets the vector elements to the values of the list.
Public methodSet(Double)
Sets all vector elements to the specified value.
Public methodSet(Double)
Sets the vector elements to the values of the array.
Public methodSet(VectorD)
Sets this instance to a copy of the specified vector.
Public methodSetSubvector
Sets a subvector of this instance.
Public methodStatic memberSubtract
Subtracts a vector from a vector.
Public methodToArray
Converts this vector to an array of double values.
Public methodToList
Converts this vector to a list of double values.
Public methodToMatrixD
Converts this VectorD to MatrixD.
Public methodToString
Returns the string representation of this vector.
(Overrides ObjectToString.)
Public methodToString(IFormatProvider)
Returns the string representation of this vector using the specified culture-specific format information.
Public methodToVector2D
Converts this VectorD to Vector2D.
Public methodToVector3D
Converts this VectorD to Vector3D.
Public methodToVector4D
Converts this VectorD to Vector4D.
Public methodToVectorF
Converts this VectorD to VectorF.
Public methodTryNormalize
Tries to normalize the vector.
Public methodWriteXml
Converts an object into its XML representation.
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds two vectors.
Public operatorStatic memberDivision(VectorD, VectorD)
Divides the elements of a vector by the elements of another vector.
Public operatorStatic memberDivision(VectorD, Double)
Divides a vector by a scalar.
Public operatorStatic memberEquality
Tests if two vectors are equal.
Public operatorStatic member(VectorD to Double)
Converts a vector to an array of double values.
Public operatorStatic member(VectorD to ListDouble)
Converts a vector to a list of double values.
Public operatorStatic member(VectorD to Vector2D)
Performs an explicit conversion from VectorD to Vector2D.
Public operatorStatic member(VectorD to Vector3D)
Performs an explicit conversion from VectorD to Vector3D.
Public operatorStatic member(VectorD to Vector4D)
Performs an explicit conversion from VectorD to Vector4D.
Public operatorStatic member(VectorD to VectorF)
Performs an explicit conversion from VectorD to VectorF.
Public operatorStatic member(VectorD to MatrixD)
Performs an explicit conversion from VectorD to MatrixD.
Public operatorStatic memberGreaterThan
Tests if each element of a vector is greater than the corresponding element of another vector.
Public operatorStatic memberGreaterThanOrEqual
Tests if each element of a vector is greater or equal than the corresponding element of another vector.
Public operatorStatic memberInequality
Tests if two vectors are not equal.
Public operatorStatic memberLessThan
Tests if each element of a vector is less than the corresponding element of another vector.
Public operatorStatic memberLessThanOrEqual
Tests if each element of a vector is less or equal than the corresponding element of another vector.
Public operatorStatic memberMultiply(Double, VectorD)
Multiplies a vector by a scalar.
Public operatorStatic memberMultiply(VectorD, VectorD)
Multiplies the components of two vectors by each other.
Public operatorStatic memberMultiply(VectorD, Double)
Multiplies a vector by a scalar.
Public operatorStatic memberSubtraction
Subtracts a vector from a vector.
Public operatorStatic memberUnaryNegation
Negates a vector.
Top
Properties
  NameDescription
Public propertyIndexOfLargestElement
Gets the index (zero-based) of the largest element.
Public propertyIndexOfSmallestElement
Gets the index (zero-based) of the smallest element.
Public propertyInternalArray
Gets or sets the internal array that is used to store the vector values.
Public propertyIsNaN
Gets a value indicating whether a component of the vector is NaN.
Public propertyIsNumericallyNormalized
Returns a value indicating whether this vector is normalized (the length is numerically equal to 1).
Public propertyIsNumericallyZero
Returns a value indicating whether this vector has zero size (the length is numerically equal to 0).
Public propertyItem
Gets or sets the component at the specified index.
Public propertyLargestElement
Gets the value of the largest element.
Public propertyLength
Gets or sets the length of this vector.
Public propertyLengthSquared
Returns the squared length of this vector.
Public propertyNormalized
Returns the normalized vector.
Public propertyNumberOfElements
Gets the number of elements n.
Public propertySmallestElement
Gets the value of the smallest element.
Top
See Also