Vector4 Structure

RAGE Plugin Hook Documentation

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

Defines a four component vector.

Namespace:  Rage
Assembly:  RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
Syntax

[SerializableAttribute]
public struct Vector4 : IEquatable<Vector4>

The Vector4 type exposes the following members.

Constructors

  NameDescription
Public methodVector4(Single)
Initializes a new instance of the Vector4 class.
Public methodVector4(Vector3, Single)
Initializes a new instance of the Vector4 class.
Public methodVector4(Vector2, Single, Single)
Initializes a new instance of the Vector4 class.
Public methodVector4(Single, Single, Single, Single)
Initializes a new instance of the Vector4 class.
Top
Properties

  NameDescription
Public propertyItem
Public propertyStatic memberSizeInBytes
Gets the size of the Vector4 type, in bytes.
Public propertyStatic memberUnitW
Gets the W unit Vector4 (0, 0, 0, 1).
Public propertyStatic memberUnitX
Gets the X unit Vector4 (1, 0, 0, 0).
Public propertyStatic memberUnitY
Gets the Y unit Vector4 (0, 1, 0, 0).
Public propertyStatic memberUnitZ
Gets the Z unit Vector4 (0, 0, 1, 0).
Public propertyStatic memberZero
Gets a Vector4 with all of its components set to zero.
Top
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
Operators

  NameDescription
Public operatorStatic memberAddition
Adds two vectors.
Public operatorStatic memberDivision
Scales a vector by the given value.
Public operatorStatic memberEquality
Tests for equality between two objects.
Public operatorStatic memberInequality
Tests for inequality between two objects.
Public operatorStatic memberMultiply(Single, Vector4)
Scales a vector by the given value.
Public operatorStatic memberMultiply(Vector4, Single)
Scales a vector by the given value.
Public operatorStatic memberSubtraction
Subtracts two vectors.
Public operatorStatic memberUnaryNegation
Reverses the direction of a given vector.
Top
Fields

  NameDescription
Public fieldW
Gets or sets the W component of the vector.
Public fieldX
Gets or sets the X component of the vector.
Public fieldY
Gets or sets the Y component of the vector.
Public fieldZ
Gets or sets the Z component of the vector.
Top
See Also

Reference