Export (0) Print
Expand All

Vector3 Methods

The Vector3 type exposes the following members.

  Name Description
Public method Static member Add(Vector3, Vector3) Adds two vectors.
Public method Static member Add(Vector3, Vector3, Vector3) Adds two vectors.
Public method Static member Barycentric(Vector3, Vector3, Vector3, Single, Single) Returns a Vector3 containing the 3D Cartesian coordinates of a point specified in Barycentric coordinates relative to a 3D triangle.
Public method Static member Barycentric(Vector3, Vector3, Vector3, Single, Single, Vector3) Returns a Vector3 containing the 3D Cartesian coordinates of a point specified in barycentric (areal) coordinates relative to a 3D triangle.
Public method Static member CatmullRom(Vector3, Vector3, Vector3, Vector3, Single) Performs a Catmull-Rom interpolation using the specified positions.
Public method Static member CatmullRom(Vector3, Vector3, Vector3, Vector3, Single, Vector3) Performs a Catmull-Rom interpolation using the specified positions.
Public method Static member Clamp(Vector3, Vector3, Vector3) Restricts a value to be within a specified range.
Public method Static member Clamp(Vector3, Vector3, Vector3, Vector3) Restricts a value to be within a specified range.
Public method Static member Cross(Vector3, Vector3) Calculates the cross product of two vectors.
Public method Static member Cross(Vector3, Vector3, Vector3) Calculates the cross product of two vectors.
Public method Static member Distance(Vector3, Vector3) Calculates the distance between two vectors.
Public method Static member Distance(Vector3, Vector3, Single) Calculates the distance between two vectors.
Public method Static member DistanceSquared(Vector3, Vector3) Calculates the distance between two vectors squared.
Public method Static member DistanceSquared(Vector3, Vector3, Single) Calculates the distance between two vectors squared.
Public method Static member Divide(Vector3, Vector3) Divides the components of a vector by the components of another vector.
Public method Static member Divide(Vector3, Single) Divides a vector by a scalar value.
Public method Static member Divide(Vector3, Vector3, Vector3) Divides the components of a vector by the components of another vector.
Public method Static member Divide(Vector3, Single, Vector3) Divides a vector by a scalar value.
Public method Static member Dot(Vector3, Vector3) 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 method Static member Dot(Vector3, Vector3, Single) Calculates the dot product of two vectors and writes the result to a user-specified variable. 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 method Equals(Object) Returns a value that indicates whether the current instance is equal to a specified object. (Overrides ValueType.Equals(Object).)
Public method Equals(Vector3) Determines whether the specified Object is equal to the Vector3.
Public method GetHashCode Gets the hash code of the vector object. (Overrides ValueType.GetHashCode().)
Public method Static member Hermite(Vector3, Vector3, Vector3, Vector3, Single) Performs a Hermite spline interpolation.
Public method Static member Hermite(Vector3, Vector3, Vector3, Vector3, Single, Vector3) Performs a Hermite spline interpolation.
Public method Length Calculates the length of the vector.
Public method LengthSquared Calculates the length of the vector squared.
Public method Static member Lerp(Vector3, Vector3, Single) Performs a linear interpolation between two vectors.
Public method Static member Lerp(Vector3, Vector3, Single, Vector3) Performs a linear interpolation between two vectors.
Public method Static member Max(Vector3, Vector3) Returns a vector that contains the highest value from each matching pair of components.
Public method Static member Max(Vector3, Vector3, Vector3) Returns a vector that contains the highest value from each matching pair of components.
Public method Static member Min(Vector3, Vector3) Returns a vector that contains the lowest value from each matching pair of components.
Public method Static member Min(Vector3, Vector3, Vector3) Returns a vector that contains the lowest value from each matching pair of components.
Public method Static member Multiply(Vector3, Vector3) Multiplies the components of two vectors by each other.
Public method Static member Multiply(Vector3, Single) Multiplies a vector by a scalar value.
Public method Static member Multiply(Vector3, Vector3, Vector3) Multiplies the components of two vectors by each other.
Public method Static member Multiply(Vector3, Single, Vector3) Multiplies a vector by a scalar value.
Public method Static member Negate(Vector3) Returns a vector pointing in the opposite direction.
Public method Static member Negate(Vector3, Vector3) Returns a vector pointing in the opposite direction.
Public method Normalize() Turns the current vector into a unit vector. The result is a vector one unit in length pointing in the same direction as the original vector.
Public method Static member Normalize(Vector3) 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 Static member Normalize(Vector3, Vector3) Creates a unit vector from the specified vector, writing the result to a user-specified variable. The result is a vector one unit in length pointing in the same direction as the original vector.
Public method Static member Reflect(Vector3, Vector3) Returns the reflection of a vector off a surface that has the specified normal.
Public method Static member Reflect(Vector3, Vector3, Vector3) Returns the reflection of a vector off a surface that has the specified normal.
Public method Static member SmoothStep(Vector3, Vector3, Single) Interpolates between two values using a cubic equation.
Public method Static member SmoothStep(Vector3, Vector3, Single, Vector3) Interpolates between two values using a cubic equation.
Public method Static member Subtract(Vector3, Vector3) Subtracts a vector from a vector.
Public method Static member Subtract(Vector3, Vector3, Vector3) Subtracts a vector from a vector.
Public method ToString Retrieves a string representation of the current object. (Overrides ValueType.ToString().)
Public method Static member Transform(Vector3, Matrix) Transforms a 3D vector by the given matrix.
Public method Static member Transform(Vector3, Quaternion) Transforms a Vector3 by a specified Quaternion rotation.
Public method Static member Transform(Vector3, Matrix, Vector3) Transforms a Vector3 by the given Matrix.
Public method Static member Transform(Vector3, Quaternion, Vector3) Transforms a Vector3 by a specified Quaternion rotation.
Public method Static member Transform(Vector3[], Matrix, Vector3[]) Transforms a source array of Vector3s by a specified Matrix and writes the results to an existing destination array.
Public method Static member Transform(Vector3[], Quaternion, Vector3[]) Transforms a source array of Vector3s by a specified Quaternion rotation and writes the results to an existing destination array.
Public method Static member Transform(Vector3[], Int32, Matrix, Vector3[], Int32, Int32) Applies a specified transform Matrix to a specified range of an array of Vector3s and writes the results into a specified range of a destination array.
Public method Static member Transform(Vector3[], Int32, Quaternion, Vector3[], Int32, Int32) Applies a specified Quaternion rotation to a specified range of an array of Vector3s and writes the results into a specified range of a destination array.
Public method Static member TransformNormal(Vector3, Matrix) Transforms a 3D vector normal by a matrix.
Public method Static member TransformNormal(Vector3, Matrix, Vector3) Transforms a vector normal by a matrix.
Public method Static member TransformNormal(Vector3[], Matrix, Vector3[]) Transforms an array of 3D vector normals by a specified Matrix.
Public method Static member TransformNormal(Vector3[], Int32, Matrix, Vector3[], Int32, Int32) Transforms a specified range in an array of 3D vector normals by a specified Matrix and writes the results to a specified range in a destination array.
Top

Community Additions

ADD
Show:
© 2014 Microsoft