Click or drag to resize

Vector3 Methods

The Vector3 type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAbs
Returns a vector whose elements are the absolute values of each of the source vector's elements.
Public methodStatic memberAdd
Adds two vectors together.
Public methodStatic memberClamp
Restricts a vector between a min and max value.
Public methodCopyTo(Single)
Copies the contents of the vector into the given array.
Public methodCopyTo(Single, Int32)
Copies the contents of the vector into the given array, starting from index.
Public methodStatic memberCross
Computes the cross product of two vectors.
Public methodStatic memberDistance
Returns the Euclidean distance between the two given points.
Public methodStatic memberDistanceSquared
Returns the Euclidean distance squared between the two given points.
Public methodStatic memberDivide(Vector3, Vector3)
Divides the first vector by the second.
Public methodStatic memberDivide(Vector3, Single)
Divides the vector by the given scalar.
Public methodStatic memberDot
Returns the dot product of two vectors.
Public methodEquals(Object)
Returns a boolean indicating whether the given Object is equal to this Vector3 instance.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Vector3)
Returns a boolean indicating whether the given Vector3 is equal to this Vector3 instance.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodLength
Returns the length of the vector.
Public methodLengthSquared
Returns the length of the vector squared. This operation is cheaper than Length().
Public methodStatic memberLerp
Linearly interpolates between two vectors based on the given weighting.
Public methodStatic memberMax
Returns a vector whose elements are the maximum of each of the pairs of elements in the two source vectors.
Public methodStatic memberMin
Returns a vector whose elements are the minimum of each of the pairs of elements in the two source vectors.
Public methodStatic memberMultiply(Single, Vector3)
Multiplies a vector by the given scalar.
Public methodStatic memberMultiply(Vector3, Vector3)
Multiplies two vectors together.
Public methodStatic memberMultiply(Vector3, Single)
Multiplies a vector by the given scalar.
Public methodStatic memberNegate
Negates a given vector.
Public methodStatic memberNormalize
Returns a vector with the same direction as the given vector, but with a length of 1.
Public methodStatic memberNormalizeSafe(Vector3)
Public methodStatic memberNormalizeSafe(Vector3, Single)
Public methodStatic memberReflect
Returns the reflection of a vector off a surface that has the specified normal.
Public methodStatic memberSquareRoot
Returns a vector whose elements are the square root of each of the source vector's elements.
Public methodStatic memberSubtract
Subtracts the second vector from the first.
Public methodToString
Returns a String representing this Vector3 instance.
(Overrides ValueTypeToString.)
Public methodToString(String)
Returns a String representing this Vector3 instance, using the specified format to format individual elements.
Public methodToString(String, IFormatProvider)
Returns a String representing this Vector3 instance, using the specified format to format individual elements and the given IFormatProvider.
Top
See Also