Vector3 Members

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

Public MethodVector3Overloaded. Initializes a new instance of Vector3.

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.

Public Property StaticBackwardReturns a unit Vector3 designating backward in a right-handed coordinate system (0, 0, 1).
Public Property StaticDownReturns a unit Vector3 designating down (0, −1, 0).
Public Property StaticForwardReturns a unit Vector3 designating forward in a right-handed coordinate system(0, 0, −1).
Public Property StaticLeftReturns a unit Vector3 designating left (−1, 0, 0).
Public Property StaticOneReturns a Vector3 with ones in all of its components.
Public Property StaticRightReturns a unit Vector3 pointing to the right (1, 0, 0).
Public Property StaticUnitXReturns the x unit Vector3 (1, 0, 0).
Public Property StaticUnitY Returns the y unit Vector3 (0, 1, 0).
Public Property StaticUnitZ Returns the z unit Vector3 (0, 0, 1).
Public Property StaticUpReturns a unit vector designating up (0, 1, 0).
Public Property StaticZeroReturns a Vector3 with all of its components set to zero.

Public Method StaticAddOverloaded. Adds two vectors.
Public Method StaticBarycentricOverloaded. Returns a Vector3 containing the 3D Cartesian coordinates of a point specified in Barycentric coordinates relative to a 3D 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 StaticCrossOverloaded. Calculates the cross product of two vectors.
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. If the two vectors are unit vectors, the dot product returns a floating point value between -1 and 1 that can be used to determine some properties of the angle between two vectors. For example, it can show whether the vectors are orthogonal, parallel, or have an acute or obtuse angle between them.
Public MethodEqualsOverloaded. Returns a value that indicates whether the current instance is equal to a specified object.
Public MethodGetHashCodeGets the hash code of the vector 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. The result is a vector one unit in length pointing in the same direction as the original 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 Method StaticReflectOverloaded. Returns the reflection of a vector off a surface that has the specified normal.
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 a Vector3 or array of Vector3s by a specified Matrix or Quaternion.
Public Method StaticTransformNormalOverloaded. Transforms a vector normal by a matrix.

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

Community Additions