# Vector3 Members

**XNA Game Studio Express**

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

Name | Description | |
---|---|---|

Backward | Returns a unit Vector3 pointing backward (0, 0, 1). | |

Down | Returns a unit Vector3 pointing down (0, −1, 0). | |

Forward | Returns a unit Vector3 pointing forward (0, 0, −1). | |

Left | Returns a unit Vector3 pointing left (−1, 0, 0). | |

One | Returns a Vector3 with ones in all of its components. | |

Right | Returns a unit Vector3 pointing to the right (1, 0, 0). | |

UnitX | Returns the x unit Vector3 (1, 0, 0). | |

UnitY | Returns the y unit Vector3 (0, 1, 0). | |

UnitZ | Returns the z unit Vector3 (0, 0, 1). | |

Up | Returns a unit Vector3 pointing up (0, 1, 0). | |

Zero | Returns a Vector3 with all of its components set to zero. |

Name | Description | |
---|---|---|

Add | Overloaded. Adds two vectors. | |

Barycentric | Overloaded. Returns a Vector3 containing the 3D Cartesian coordinates of a point specified in Barycentric coordinates relative to a 3D triangle. | |

CatmullRom | Overloaded. Performs a Catmull-Rom interpolation using the specified positions. | |

Clamp | Overloaded. Restricts a value to be within a specified range. | |

Cross | Overloaded. Calculates the cross product of two vectors. | |

Distance | Overloaded. Calculates the distance between two vectors. | |

DistanceSquared | Overloaded. Calculates the distance between two vectors squared. | |

Divide | Overloaded. Divide a vector by a scalar or another vector. | |

Dot | Overloaded. Calculates the dot product of two vectors. | |

Equals | Overloaded. Returns a value that indicates whether the current instance is equal to a specified object. | |

GetHashCode | Gets the hash code of the vector object. | |

GetType | (Inherited from Object.) | |

Hermite | Overloaded. Performs a Hermite spline interpolation. | |

Length | Calculates the length of the vector. | |

LengthSquared | Calculates the length of the vector squared. | |

Lerp | Overloaded. Performs a linear interpolation between two vectors. | |

Max | Overloaded. Returns a vector that contains the highest value from each matching pair of components. | |

Min | Overloaded. Returns a vector that contains the lowest value from each matching pair of components. | |

Multiply | Overloaded. Multiplies a vector by a scalar or another vector. | |

Negate | Overloaded. Returns a vector pointing in the opposite direction. | |

Normalize | Overloaded. Creates a unit vector from the specified vector. | |

op_Addition | Adds two vectors. | |

op_Division | Overloaded. Divides a vector by a scalar or another vector. | |

op_Equality | Tests vectors for equality. | |

op_Inequality | Tests vectors for inequality. | |

op_Multiply | Overloaded. Multiplies a vector by a scalar or another vector. | |

op_Subtraction | Subtracts a vector from a vector. | |

op_UnaryNegation | Returns a vector pointing in the opposite direction. | |

ReferenceEquals | (Inherited from Object.) | |

Reflect | Overloaded. Returns the reflection of a vector off a surface that has the specified normal. | |

SmoothStep | Overloaded. Interpolates between two values using a cubic equation. | |

Subtract | Overloaded. Subtracts a vector from a vector. | |

ToString | Retrieves a string representation of the current object. | |

Transform | Overloaded. Transforms a Vector3 or array of Vector3s by a specified Matrix or Quaternion. | |

TransformNormal | Overloaded. Transforms a vector normal by a matrix. |

Name | Description | |
---|---|---|

Finalize | (Inherited from Object.) | |

MemberwiseClone | (Inherited from Object.) |

Show: