Click or drag to resize

Vector4F Methods

The Vector4F type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAbs
Returns a vector whose elements are the absolute values of each of the specified vector's components.
Public methodStatic memberAcos
Calculates the arc-cosine of each component of the specified vector.
Public methodStatic memberAdd
Adds two vectors.
Public methodStatic memberAllNonZero
Determines whether all components of a given vector are unequal to the zero.
Public methodStatic memberAnyNonZero
Determines whether any component of a given vector is unequal to the zero.
Public methodStatic memberAsin
Calculates the arc-sine of each component of the specified vector.
Public methodStatic memberAtan
Calculates the arc-tangent of each component of the specified vector.
Public methodStatic memberAtan2
Returns the vector which contains the angles in radians whose tangents are the quotient of the corresponding components in the first specified vector y and the second specified vector x.
Public methodStatic memberCos
Calculates the cosine of each component of the specified vector.
Public methodStatic memberCosh
Calculates the hyperbolic cosine of each component of the specified vector.
Public methodStatic memberDistance(Vector4F, Vector4F)
Calculates the distance between two vectors.
Public methodStatic memberDistance(Vector4F, Vector4F)
Calculates the distance between two vectors.
Public methodStatic memberDivide(Single, Vector4F, Vector4F)
Divides a scalar by a vector.
Public methodStatic memberDivide(Vector4F, Vector4F, Vector4F)
Divides the first vector by the second vector.
Public methodStatic memberDivide(Vector4F, Single, Vector4F)
Divides a vector by a given scalar.
Public methodDot(Vector4F)
Calculates the dot product of two vectors.
Public methodDot(Vector4F)
Calculates the dot product of two vectors.
Public methodStatic memberDot(Vector4F, Vector4F)
Calculates the dot product of two vectors.
Public methodStatic memberDot(Vector4F, Vector4F)
Calculates the dot product of two vectors.
Public methodEquals(Object)
Determines whether the specified object is equal to the current instance of Vector4F.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Vector4F)
Public methodEquals(Vector4F, Single)
Determines whether the specified vector is equal to the current instance of Vector4F with a given precision.
Public methodStatic memberEquals(Vector4F, Vector4F)
Public methodEquals(Vector4F, Single)
Determines whether the specified vector is equal to the current instance of Vector4F with a given precision.
Public methodStatic memberExp
Returns the vector which contains e raised to the power of n, where n is the corresponding component in the specified vector.
Public methodGetClamp
Restricts the current instance of Vector4F to be within a specified range and returns the clamped value.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetNormalize
Converts the current instance of Vector4F into a unit vector and returns the normalized vector.
Public methodGetSaturate
Clamps the components of the current instance of Vector4F between 0 and 1 and returns the saturated value.
Public methodGetTruncate
Rounds a given vector towards zero for each component in it and returns the truncated vector.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLength
Calculates the length of the current instance of Vector4F.
Public methodLengthSquared
Calculates the squared length of the current instance of Vector4F.
Public methodStatic memberLerp(Vector4F, Vector4F, Single)
Performs a linear interpolation between two vectors based on the given weighting.
Public methodStatic memberLerp(Vector4F, Vector4F, Single, Vector4F)
Performs a linear interpolation between two vectors based on the given weighting.
Public methodStatic memberLog
Calculates the natural logarithm of each component of the specified vector.
Public methodStatic memberLog10
Calculates the base 10 logarithm of each component of the specified vector.
Public methodStatic memberMax
Returns a vector containing the largest components of the specified vectors.
Public methodMaxComponent
Returns the value of the largest component of the current instance of Vector4F.
Public methodStatic memberMin
Returns a vector containing the smallest components of the specified vectors.
Public methodMinComponent
Returns the value of the smallest component of the current instance of Vector4F.
Public methodStatic memberMultiply(Single, Vector4F, Vector4F)
Multiplies a vector by a given scalar.
Public methodStatic memberMultiply(Vector4F, Vector4F, Vector4F)
Multiplies two vectors together.
Public methodStatic memberMultiply(Vector4F, Single, Vector4F)
Multiplies a vector by a given scalar.
Public methodStatic memberNegate
Reverses the direction of a given vector.
Public methodNormalize
Converts the current instance of Vector4F into a unit vector.
Public methodStatic memberNormalize(Vector4F)
Converts a vector into a unit vector.
Public methodStatic memberNormalize(Vector4F, Vector4F)
Converts a vector into a unit vector.
Public methodStatic memberParse
Converts a string representation of a vector into the equivalent Vector4F structure.
Public methodStatic memberPow
Returns the vector which contains the components of the first specified vector raised to power of the numbers which are equal to the corresponding components of the second specified vector.
Public methodSaturate
Clamps the components of the current instance of Vector4F between 0 and 1.
Public methodStatic memberSelect
Chooses one of two vectors depending on the pick1 value.
Public methodStatic memberSin
Calculates the sine of each component of the specified vector.
Public methodStatic memberSinh
Calculates the hyperbolic sine of each component of the specified vector.
Public methodStatic memberSqrt
Calculates the square root of each component of the specified vector.
Public methodStatic memberSubtract
Subtracts two vectors.
Public methodStatic memberTan
Calculates the tangent of each component of the specified vector.
Public methodStatic memberTanh
Calculates the hyperbolic tangent of each component of the specified vector.
Public methodToColorValue
Converts each component of the current instance of Vector4F into the component of the ColorValue structure: X to red component, Y to green component, Z to blue component, W to alpha component.
Public methodToPlane
Converts the current instance of Vector4F into the equivalent Plane structure.
Public methodToString
Returns a String that represents the current instance of Vector4F.
(Overrides ValueTypeToString.)
Public methodToString(Int32)
Returns a String that represents the current instance of Vector4F with a given precision.
Public methodToVector2F
Converts the current instance of Vector4F into an instance of Vector2F.
Public methodToVector3
Converts the current instance of Vector4F into an instance of Vector2F.
Public methodToVector3F
Converts the current instance of Vector4F into an instance of Vector3F.
Public methodToVector4
Converts the current instance of Vector4F into the equivalent Vector4 structure.
Public methodToVector4H
Converts the current instance of Vector4F into the equivalent Vector4H structure.
Public methodToVector4I
Converts the current instance of Vector4F into the equivalent Vector4I structure.
Public methodTruncate
Rounds the current instance of Vector4F towards zero for each component in a vector.
Top
Extension Methods
See Also