Vector3 Structure |
Namespace: SoftGear.Strix.Client.Ingame.Interpolation
public struct Vector3 : IEquatable<Vector3>, IFormattable
The Vector3 type exposes the following members.
Name | Description | |
---|---|---|
![]() | Vector3(Single) |
Constructs a vector whose elements are all the single specified value.
|
![]() | Vector3(Vector3) | Initializes a new instance of the Vector3 class |
![]() | Vector3(Single, Single, Single) |
Constructs a vector with the given individual elements.
|
Name | Description | |
---|---|---|
![]() ![]() | One |
Returns the vector (1,1,1).
|
![]() ![]() | UnitX |
Returns the vector (1,0,0).
|
![]() ![]() | UnitY |
Returns the vector (0,1,0).
|
![]() ![]() | UnitZ |
Returns the vector (0,0,1).
|
![]() ![]() | Zero |
Returns the vector (0,0,0).
|
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.
|
Name | Description | |
---|---|---|
![]() ![]() | Addition |
Adds two vectors together.
|
![]() ![]() | Division(Vector3, Vector3) |
Divides the first vector by the second.
|
![]() ![]() | Division(Vector3, Single) |
Divides the vector by the given scalar.
|
![]() ![]() | Equality |
Returns a boolean indicating whether the two given vectors are equal.
|
![]() ![]() | Inequality |
Returns a boolean indicating whether the two given vectors are not equal.
|
![]() ![]() | 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.
|
![]() ![]() | Subtraction |
Subtracts the second vector from the first.
|
![]() ![]() | UnaryNegation |
Negates a given vector.
|
Name | Description | |
---|---|---|
![]() ![]() | EPSILON | |
![]() | X |
The X component of the vector.
|
![]() | Y |
The Y component of the vector.
|
![]() | Z |
The Z component of the vector.
|