Export (0) Print
Expand All

Vector4 Members

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

NameDescription
Public MethodVector4Overloaded. Initializes a new instance of Vector4.

NameDescription
Public FieldWGets or sets the w-component of the vector.
Public FieldXGets or sets the x-component of the vector.
Public FieldYGets or sets the y-component of the vector.
Public FieldZGets or sets the z-component of the vector.

NameDescription
Public Property StaticOneReturns a Vector4 with all of its components set to one.
Public Property StaticUnitWReturns the Vector4 (0, 0, 0, 1).
Public Property StaticUnitX Returns the Vector4 (1, 0, 0, 0).
Public Property StaticUnitY Returns the Vector4 (0, 1, 0, 0).
Public Property StaticUnitZ Returns the Vector4 (0, 0, 1, 0).
Public Property StaticZero Returns a Vector4 with all of its components set to zero.

NameDescription
Public Method StaticAddOverloaded. Adds two vectors.
Public Method StaticBarycentricOverloaded. Returns a Vector4 containing the 4D Cartesian coordinates of a point specified in barycentric (areal) coordinates relative to a 4D triangle.
Public Method StaticCatmullRomOverloaded. Performs a Catmull-Rom interpolation using the specified positions.
Public Method StaticClampOverloaded. Restricts a value to be within a specified range.
Public Method StaticDistanceOverloaded. Calculates the distance between two vectors.
Public Method StaticDistanceSquaredOverloaded. Calculates the distance between two vectors squared.
Public Method StaticDivideOverloaded. Divide a vector by a scalar or another vector.
Public Method StaticDotOverloaded. Calculates the dot product of two vectors.
Public MethodEqualsOverloaded. Returns a value that indicates whether the current instance is equal to a specified object.
Public MethodGetHashCodeGets the hash code of this object.
Public MethodGetType (Inherited from Object.)
Public Method StaticHermiteOverloaded. Performs a Hermite spline interpolation.
Public MethodLengthCalculates the length of the vector.
Public MethodLengthSquaredCalculates the length of the vector squared.
Public Method StaticLerpOverloaded. Performs a linear interpolation between two vectors.
Public Method StaticMaxOverloaded. Returns a vector that contains the highest value from each matching pair of components.
Public Method StaticMinOverloaded. Returns a vector that contains the lowest value from each matching pair of components.
Public Method StaticMultiplyOverloaded. Multiplies a vector by a scalar or another vector.
Public Method StaticNegateOverloaded. Returns a vector pointing in the opposite direction.
Public MethodNormalizeOverloaded. Creates a unit vector from the specified vector.
Public Method Staticop_AdditionAdds two vectors.
Public Method Staticop_DivisionOverloaded. Divides a vector by a scalar or another vector.
Public Method Staticop_EqualityTests vectors for equality.
Public Method Staticop_InequalityTests vectors for inequality.
Public Method Staticop_MultiplyOverloaded. Multiplies a vector by a scalar or another vector.
Public Method Staticop_SubtractionSubtracts a vector from a vector.
Public Method Staticop_UnaryNegationReturns a vector pointing in the opposite direction.
Public MethodReferenceEquals (Inherited from Object.)
Public Method StaticSmoothStepOverloaded. Interpolates between two values using a cubic equation.
Public Method StaticSubtractOverloaded. Subtracts a vector from a vector.
Public MethodToStringRetrieves a string representation of the current object.
Public Method StaticTransformOverloaded. Transforms one or more vectors by a specified Matrix or Quaternion and returns the results in Vector4 form.

NameDescription
Protected MethodFinalize (Inherited from Object.)
Protected MethodMemberwiseClone (Inherited from Object.)

Community Additions

ADD
Show:
© 2014 Microsoft