Click or drag to resize

Vector3 Structure

A structure encapsulating three single precision floating point values and provides hardware accelerated methods.

Namespace:  SoftGear.Strix.Client.Ingame.Interpolation
Assembly:  strix-client-csharp-ingame (in strix-client-csharp-ingame.dll) Version: 2.3.0
Syntax
C#
public struct Vector3 : IEquatable<Vector3>, 
	IFormattable

The Vector3 type exposes the following members.

Constructors
  NameDescription
Public methodVector3(Single)
Constructs a vector whose elements are all the single specified value.
Public methodVector3(Vector3)
Initializes a new instance of the Vector3 class
Public methodVector3(Single, Single, Single)
Constructs a vector with the given individual elements.
Top
Properties
  NameDescription
Public propertyStatic memberOne
Returns the vector (1,1,1).
Public propertyStatic memberUnitX
Returns the vector (1,0,0).
Public propertyStatic memberUnitY
Returns the vector (0,1,0).
Public propertyStatic memberUnitZ
Returns the vector (0,0,1).
Public propertyStatic memberZero
Returns the vector (0,0,0).
Top
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
Operators
  NameDescription
Public operatorStatic memberAddition
Adds two vectors together.
Public operatorStatic memberDivision(Vector3, Vector3)
Divides the first vector by the second.
Public operatorStatic memberDivision(Vector3, Single)
Divides the vector by the given scalar.
Public operatorStatic memberEquality
Returns a boolean indicating whether the two given vectors are equal.
Public operatorStatic memberInequality
Returns a boolean indicating whether the two given vectors are not equal.
Public operatorStatic memberMultiply(Single, Vector3)
Multiplies a vector by the given scalar.
Public operatorStatic memberMultiply(Vector3, Vector3)
Multiplies two vectors together.
Public operatorStatic memberMultiply(Vector3, Single)
Multiplies a vector by the given scalar.
Public operatorStatic memberSubtraction
Subtracts the second vector from the first.
Public operatorStatic memberUnaryNegation
Negates a given vector.
Top
Fields
  NameDescription
Public fieldStatic memberEPSILON
Public fieldX
The X component of the vector.
Public fieldY
The Y component of the vector.
Public fieldZ
The Z component of the vector.
Top
See Also