Vector3 Methods |
The Vector3 type exposes the following members.
Name | Description | |
---|---|---|
Abs |
Returns a vector whose elements are the absolute values of each of the source vector's elements.
| |
Add |
Adds two vectors together.
| |
Clamp |
Restricts a vector between a min and max value.
| |
CopyTo(Single) |
Copies the contents of the vector into the given array.
| |
CopyTo(Single, Int32) |
Copies the contents of the vector into the given array, starting from index.
| |
Cross |
Computes the cross product of two vectors.
| |
Distance |
Returns the Euclidean distance between the two given points.
| |
DistanceSquared |
Returns the Euclidean distance squared between the two given points.
| |
Divide(Vector3, Vector3) |
Divides the first vector by the second.
| |
Divide(Vector3, Single) |
Divides the vector by the given scalar.
| |
Dot |
Returns the dot product of two vectors.
| |
Equals(Object) |
Returns a boolean indicating whether the given Object is equal to this Vector3 instance.
(Overrides ValueTypeEquals(Object).) | |
Equals(Vector3) |
Returns a boolean indicating whether the given Vector3 is equal to this Vector3 instance.
| |
GetHashCode |
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.) | |
Length |
Returns the length of the vector.
| |
LengthSquared |
Returns the length of the vector squared. This operation is cheaper than Length().
| |
Lerp |
Linearly interpolates between two vectors based on the given weighting.
| |
Max |
Returns a vector whose elements are the maximum of each of the pairs of elements in the two source vectors.
| |
Min |
Returns a vector whose elements are the minimum of each of the pairs of elements in the two source vectors.
| |
Multiply(Single, Vector3) |
Multiplies a vector by the given scalar.
| |
Multiply(Vector3, Vector3) |
Multiplies two vectors together.
| |
Multiply(Vector3, Single) |
Multiplies a vector by the given scalar.
| |
Negate |
Negates a given vector.
| |
Normalize |
Returns a vector with the same direction as the given vector, but with a length of 1.
| |
NormalizeSafe(Vector3) | ||
NormalizeSafe(Vector3, Single) | ||
Reflect |
Returns the reflection of a vector off a surface that has the specified normal.
| |
SquareRoot |
Returns a vector whose elements are the square root of each of the source vector's elements.
| |
Subtract |
Subtracts the second vector from the first.
| |
ToString |
Returns a String representing this Vector3 instance.
(Overrides ValueTypeToString.) | |
ToString(String) |
Returns a String representing this Vector3 instance, using the specified format to format individual elements.
| |
ToString(String, IFormatProvider) |
Returns a String representing this Vector3 instance, using the specified format to format individual elements
and the given IFormatProvider.
|