Click or drag to resize
DigitalRuneVectorF Class
Defines an n-dimensional vector (single-precision).
Inheritance Hierarchy
SystemObject
  DigitalRune.Mathematics.AlgebraVectorF

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 VectorF : IEquatable<VectorF>, 
	ISerializable, IXmlSerializable

The VectorF type exposes the following members.

Constructors
  NameDescription
Public methodVectorF
Initializes a new instance of the VectorF class with 4 vector elements.
Public methodVectorF(IListSingle)
Initializes a new instance of the VectorF class.
Public methodVectorF(Int32)
Initializes a new instance of the VectorF class.
Public methodVectorF(Single)
Initializes a new instance of the VectorF class.
Public methodVectorF(Int32, Single)
Initializes a new instance of the VectorF class.
Protected methodVectorF(SerializationInfo, StreamingContext)
Initializes a new instance of the VectorF class with serialized data.
Top
Methods
  NameDescription
Public methodAbsolute
Sets each vector element to its absolute value.
Public methodStatic memberAbsolute(VectorF)
Returns a vector with the absolute values of the elements of the given vector.
Public methodStatic memberAdd
Adds two vectors.
Public methodStatic memberAreNumericallyEqual(VectorF, VectorF)
Determines whether two vectors are equal (regarding the tolerance EpsilonF).
Public methodStatic memberAreNumericallyEqual(VectorF, VectorF, Single)
Determines whether two vectors are equal (regarding a specific tolerance).
Public methodClamp(Single, Single)
Clamps the vector elements to the range [min, max].
Public methodStatic memberClamp(VectorF, Single, Single)
Returns a vector with the vector elements clamped to the range [min, max].
Public methodClampToZero
Clamps near-zero vector elements to zero.
Public methodClampToZero(Single)
Clamps near-zero vector elements to zero.
Public methodStatic memberClampToZero(VectorF)
Returns a vector with near-zero vector elements clamped to 0.
Public methodStatic memberClampToZero(VectorF, Single)
Returns a vector with near-zero vector elements clamped to 0.
Public methodClone
Clones this instance.
Public methodStatic memberDivide(VectorF, VectorF)
Divides the elements of a vector by the elements of another vector.
Public methodStatic memberDivide(VectorF, Single)
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(VectorF)
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(Single, VectorF)
Multiplies a vector by a scalar.
Public methodStatic memberMultiply(VectorF, VectorF)
Multiplies the components of two vectors by each other.
Public methodStatic memberNegate
Negates a vector.
Public methodNormalize
Normalizes the vector.
Public methodProjectTo(VectorF)
Sets this vector to its projection onto the axis given by the target vector.
Public methodStatic memberProjectTo(VectorF, VectorF)
Projects a vector onto an axis given by the target vector.
Public methodReadXml
Generates an object from its XML representation.
Public methodSet(IListSingle)
Sets the vector elements to the values of the list.
Public methodSet(Single)
Sets all vector elements to the specified value.
Public methodSet(Single)
Sets the vector elements to the values of the array.
Public methodSet(VectorF)
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 float values.
Public methodToList
Converts this vector to a list of float values.
Public methodToMatrixF
Converts this VectorF to MatrixF.
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 methodToVector2F
Converts this VectorF to Vector2F.
Public methodToVector3F
Converts this VectorF to Vector3F.
Public methodToVector4F
Converts this VectorF to Vector4F.
Public methodToVectorD
Converts this VectorF to VectorD.
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(VectorF, VectorF)
Divides the elements of a vector by the elements of another vector.
Public operatorStatic memberDivision(VectorF, Single)
Divides a vector by a scalar.
Public operatorStatic memberEquality
Tests if two vectors are equal.
Public operatorStatic member(VectorF to Single)
Converts a vector to an array of float values.
Public operatorStatic member(VectorF to ListSingle)
Converts a vector to a list of float values.
Public operatorStatic member(VectorF to Vector2F)
Performs an explicit conversion from VectorF to Vector2F.
Public operatorStatic member(VectorF to Vector3F)
Performs an explicit conversion from VectorF to Vector3F.
Public operatorStatic member(VectorF to Vector4F)
Performs an explicit conversion from VectorF to Vector4F.
Public operatorStatic member(VectorF to MatrixF)
Performs an explicit conversion from VectorF to MatrixF.
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 member(VectorF to VectorD)
Performs an implicit conversion from VectorF to VectorD.
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(Single, VectorF)
Multiplies a vector by a scalar.
Public operatorStatic memberMultiply(VectorF, VectorF)
Multiplies the components of two vectors by each other.
Public operatorStatic memberMultiply(VectorF, Single)
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