Vector4 Methods

RAGE Plugin Hook Documentation

[This is preliminary documentation and is subject to change.]

The Vector4 type exposes the following members.

Methods

  NameDescription
Public methodStatic memberAdd(Vector4, Vector4)
Adds two vectors.
Public methodStatic memberAdd(Vector4, Vector4, Vector4)
Adds two vectors.
Public methodStatic memberBarycentric(Vector4, Vector4, Vector4, Single, Single)
Returns a Vector4 containing the 4D Cartesian coordinates of a point specified in Barycentric coordinates relative to a 4D triangle.
Public methodStatic memberBarycentric(Vector4, Vector4, Vector4, Single, Single, Vector4)
Returns a Vector4 containing the 4D Cartesian coordinates of a point specified in Barycentric coordinates relative to a 4D triangle.
Public methodStatic memberCatmullRom(Vector4, Vector4, Vector4, Vector4, Single)
Performs a Catmull-Rom interpolation using the specified positions.
Public methodStatic memberCatmullRom(Vector4, Vector4, Vector4, Vector4, Single, Vector4)
Performs a Catmull-Rom interpolation using the specified positions.
Public methodStatic memberClamp(Vector4, Vector4, Vector4)
Restricts a value to be within a specified range.
Public methodStatic memberClamp(Vector4, Vector4, Vector4, Vector4)
Restricts a value to be within a specified range.
Public methodStatic memberDistance
Calculates the distance between two vectors.
Public methodStatic memberDistanceSquared
Calculates the squared distance between two vectors.
Public methodStatic memberDivide(Vector4, Single)
Scales a vector by the given value.
Public methodStatic memberDivide(Vector4, Single, Vector4)
Scales a vector by the given value.
Public methodStatic memberDot
Calculates the dot product of two vectors.
Public methodEquals(Object)
Returns a value that indicates whether the current instance is equal to a specified object.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Vector4)
Returns a value that indicates whether the current instance is equal to the specified object.
Public methodStatic memberEquals(Vector4, Vector4)
Determines whether the specified object instances are considered equal.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodStatic memberHermite(Vector4, Vector4, Vector4, Vector4, Single)
Performs a Hermite spline interpolation.
Public methodStatic memberHermite(Vector4, Vector4, Vector4, Vector4, Single, Vector4)
Performs a Hermite spline interpolation.
Public methodLength
Calculates the length of the vector.
Public methodLengthSquared
Calculates the squared length of the vector.
Public methodStatic memberLerp(Vector4, Vector4, Single)
Performs a linear interpolation between two vectors.
Public methodStatic memberLerp(Vector4, Vector4, Single, Vector4)
Performs a linear interpolation between two vectors.
Public methodStatic memberMaximize(Vector4, Vector4)
Returns a vector containing the largest components of the specified vectors.
Public methodStatic memberMaximize(Vector4, Vector4, Vector4)
Returns a vector containing the smallest components of the specified vectors.
Public methodStatic memberMinimize(Vector4, Vector4)
Returns a vector containing the smallest components of the specified vectors.
Public methodStatic memberMinimize(Vector4, Vector4, Vector4)
Returns a vector containing the smallest components of the specified vectors.
Public methodStatic memberModulate(Vector4, Vector4)
Modulates a vector by another.
Public methodStatic memberModulate(Vector4, Vector4, Vector4)
Modulates a vector by another.
Public methodStatic memberMultiply(Vector4, Single)
Scales a vector by the given value.
Public methodStatic memberMultiply(Vector4, Single, Vector4)
Scales a vector by the given value.
Public methodStatic memberNegate(Vector4)
Reverses the direction of a given vector.
Public methodStatic memberNegate(Vector4, Vector4)
Reverses the direction of a given vector.
Public methodNormalize
Converts the vector into a unit vector.
Public methodStatic memberNormalize(Vector4)
Converts the vector into a unit vector.
Public methodStatic memberNormalize(Vector4, Vector4)
Converts the vector into a unit vector.
Public methodStatic memberSmoothStep(Vector4, Vector4, Single)
Performs a cubic interpolation between two vectors.
Public methodStatic memberSmoothStep(Vector4, Vector4, Single, Vector4)
Performs a cubic interpolation between two vectors.
Public methodStatic memberSubtract(Vector4, Vector4)
Subtracts two vectors.
Public methodStatic memberSubtract(Vector4, Vector4, Vector4)
Subtracts two vectors.
Public methodToString
Converts the value of the object to its equivalent string representation.
(Overrides ValueTypeToString.)
Public methodStatic memberTransform(Vector4, Matrix)
Transforms a 4D vector by the given Matrix.
Public methodStatic memberTransform(Vector4, Quaternion)
Transforms a 4D vector by the given Quaternion rotation.
Public methodStatic memberTransform(Vector4, Matrix)
Transforms an array of 4D vectors by the given Matrix.
Public methodStatic memberTransform(Vector4, Quaternion)
Transforms an array of 4D vectors by the given Quaternion rotation.
Public methodStatic memberTransform(Vector4, Matrix, Vector4)
Transforms a 4D vector by the given Matrix.
Public methodStatic memberTransform(Vector4, Quaternion, Vector4)
Transforms a 4D vector by the given Quaternion rotation.
Top
See Also

Reference