This topic has not yet been rated - Rate this topic

# Vector4 Members

XNA Game Studio 2.0

The following tables list the members exposed by the Vector4 type.

NameDescription
Vector4Overloaded. Initializes a new instance of Vector4.
NameDescription
WGets or sets the w-component of the vector.
XGets or sets the x-component of the vector.
YGets or sets the y-component of the vector.
ZGets or sets the z-component of the vector.
NameDescription
OneReturns a Vector4 with all of its components set to one.
UnitWReturns the Vector4 (0, 0, 0, 1).
UnitX Returns the Vector4 (1, 0, 0, 0).
UnitY Returns the Vector4 (0, 1, 0, 0).
UnitZ Returns the Vector4 (0, 0, 1, 0).
Zero Returns a Vector4 with all of its components set to zero.
NameDescription
BarycentricOverloaded. Returns a Vector4 containing the 4D Cartesian coordinates of a point specified in barycentric (areal) coordinates relative to a 4D triangle.
CatmullRomOverloaded. Performs a Catmull-Rom interpolation using the specified positions.
ClampOverloaded. Restricts a value to be within a specified range.
DistanceOverloaded. Calculates the distance between two vectors.
DistanceSquaredOverloaded. Calculates the distance between two vectors squared.
DivideOverloaded. Divide a vector by a scalar or another vector.
DotOverloaded. Calculates the dot product of two vectors.
EqualsOverloaded. Returns a value that indicates whether the current instance is equal to a specified object.
GetHashCodeGets the hash code of this object.
GetType (Inherited from Object.)
HermiteOverloaded. Performs a Hermite spline interpolation.
LengthCalculates the length of the vector.
LengthSquaredCalculates the length of the vector squared.
LerpOverloaded. Performs a linear interpolation between two vectors.
MaxOverloaded. Returns a vector that contains the highest value from each matching pair of components.
MinOverloaded. Returns a vector that contains the lowest value from each matching pair of components.
MultiplyOverloaded. Multiplies a vector by a scalar or another vector.
NegateOverloaded. Returns a vector pointing in the opposite direction.
NormalizeOverloaded. Creates a unit vector from the specified vector.
op_DivisionOverloaded. Divides a vector by a scalar or another vector.
op_EqualityTests vectors for equality.
op_InequalityTests vectors for inequality.
op_MultiplyOverloaded. Multiplies a vector by a scalar or another vector.
op_SubtractionSubtracts a vector from a vector.
op_UnaryNegationReturns a vector pointing in the opposite direction.
ReferenceEquals (Inherited from Object.)
SmoothStepOverloaded. Interpolates between two values using a cubic equation.
SubtractOverloaded. Subtracts a vector from a vector.
ToStringRetrieves a string representation of the current object.
TransformOverloaded. Transforms one or more vectors by a specified Matrix or Quaternion and returns the results in Vector4 form.
NameDescription
Finalize (Inherited from Object.)
MemberwiseClone (Inherited from Object.)