[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
The Vector4 type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | Vector4(Single) |
Initializes a new instance of the Vector4 class.
|
![]() | Vector4(Vector3, Single) |
Initializes a new instance of the Vector4 class.
|
![]() | Vector4(Vector2, Single, Single) |
Initializes a new instance of the Vector4 class.
|
![]() | Vector4(Single, Single, Single, Single) |
Initializes a new instance of the Vector4 class.
|
Properties
Name | Description | |
---|---|---|
![]() | Item | |
![]() ![]() | SizeInBytes |
Gets the size of the Vector4 type, in bytes.
|
![]() ![]() | UnitW |
Gets the W unit Vector4 (0, 0, 0, 1).
|
![]() ![]() | UnitX |
Gets the X unit Vector4 (1, 0, 0, 0).
|
![]() ![]() | UnitY |
Gets the Y unit Vector4 (0, 1, 0, 0).
|
![]() ![]() | UnitZ |
Gets the Z unit Vector4 (0, 0, 1, 0).
|
![]() ![]() | Zero |
Gets a Vector4 with all of its components set to zero.
|
Methods
Name | Description | |
---|---|---|
![]() ![]() | Add(Vector4, Vector4) |
Adds two vectors.
|
![]() ![]() | Add(Vector4, Vector4, Vector4) |
Adds two vectors.
|
![]() ![]() | Barycentric(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.
|
![]() ![]() | Barycentric(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.
|
![]() ![]() | CatmullRom(Vector4, Vector4, Vector4, Vector4, Single) |
Performs a Catmull-Rom interpolation using the specified positions.
|
![]() ![]() | CatmullRom(Vector4, Vector4, Vector4, Vector4, Single, Vector4) |
Performs a Catmull-Rom interpolation using the specified positions.
|
![]() ![]() | Clamp(Vector4, Vector4, Vector4) |
Restricts a value to be within a specified range.
|
![]() ![]() | Clamp(Vector4, Vector4, Vector4, Vector4) |
Restricts a value to be within a specified range.
|
![]() ![]() | Distance |
Calculates the distance between two vectors.
|
![]() ![]() | DistanceSquared |
Calculates the squared distance between two vectors.
|
![]() ![]() | Divide(Vector4, Single) |
Scales a vector by the given value.
|
![]() ![]() | Divide(Vector4, Single, Vector4) |
Scales a vector by the given value.
|
![]() ![]() | Dot |
Calculates the dot product of two vectors.
|
![]() | Equals(Object) |
Returns a value that indicates whether the current instance is equal to a specified object.
(Overrides ValueTypeEquals(Object).) |
![]() | Equals(Vector4) |
Returns a value that indicates whether the current instance is equal to the specified object.
|
![]() ![]() | Equals(Vector4, Vector4) |
Determines whether the specified object instances are considered equal.
|
![]() | GetHashCode |
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.) |
![]() ![]() | Hermite(Vector4, Vector4, Vector4, Vector4, Single) |
Performs a Hermite spline interpolation.
|
![]() ![]() | Hermite(Vector4, Vector4, Vector4, Vector4, Single, Vector4) |
Performs a Hermite spline interpolation.
|
![]() | Length |
Calculates the length of the vector.
|
![]() | LengthSquared |
Calculates the squared length of the vector.
|
![]() ![]() | Lerp(Vector4, Vector4, Single) |
Performs a linear interpolation between two vectors.
|
![]() ![]() | Lerp(Vector4, Vector4, Single, Vector4) |
Performs a linear interpolation between two vectors.
|
![]() ![]() | Maximize(Vector4, Vector4) |
Returns a vector containing the largest components of the specified vectors.
|
![]() ![]() | Maximize(Vector4, Vector4, Vector4) |
Returns a vector containing the smallest components of the specified vectors.
|
![]() ![]() | Minimize(Vector4, Vector4) |
Returns a vector containing the smallest components of the specified vectors.
|
![]() ![]() | Minimize(Vector4, Vector4, Vector4) |
Returns a vector containing the smallest components of the specified vectors.
|
![]() ![]() | Modulate(Vector4, Vector4) |
Modulates a vector by another.
|
![]() ![]() | Modulate(Vector4, Vector4, Vector4) |
Modulates a vector by another.
|
![]() ![]() | Multiply(Vector4, Single) |
Scales a vector by the given value.
|
![]() ![]() | Multiply(Vector4, Single, Vector4) |
Scales a vector by the given value.
|
![]() ![]() | Negate(Vector4) |
Reverses the direction of a given vector.
|
![]() ![]() | Negate(Vector4, Vector4) |
Reverses the direction of a given vector.
|
![]() | Normalize |
Converts the vector into a unit vector.
|
![]() ![]() | Normalize(Vector4) |
Converts the vector into a unit vector.
|
![]() ![]() | Normalize(Vector4, Vector4) |
Converts the vector into a unit vector.
|
![]() ![]() | SmoothStep(Vector4, Vector4, Single) |
Performs a cubic interpolation between two vectors.
|
![]() ![]() | SmoothStep(Vector4, Vector4, Single, Vector4) |
Performs a cubic interpolation between two vectors.
|
![]() ![]() | Subtract(Vector4, Vector4) |
Subtracts two vectors.
|
![]() ![]() | Subtract(Vector4, Vector4, Vector4) |
Subtracts two vectors.
|
![]() | ToString |
Converts the value of the object to its equivalent string representation.
(Overrides ValueTypeToString.) |
![]() ![]() | Transform(Vector4, Matrix) |
Transforms a 4D vector by the given Matrix.
|
![]() ![]() | Transform(Vector4, Quaternion) |
Transforms a 4D vector by the given Quaternion rotation.
|
![]() ![]() | Transform(Vector4, Matrix) |
Transforms an array of 4D vectors by the given Matrix.
|
![]() ![]() | Transform(Vector4, Quaternion) |
Transforms an array of 4D vectors by the given Quaternion rotation.
|
![]() ![]() | Transform(Vector4, Matrix, Vector4) |
Transforms a 4D vector by the given Matrix.
|
![]() ![]() | Transform(Vector4, Quaternion, Vector4) |
Transforms a 4D vector by the given Quaternion rotation.
|
Operators
Name | Description | |
---|---|---|
![]() ![]() | Addition |
Adds two vectors.
|
![]() ![]() | Division |
Scales a vector by the given value.
|
![]() ![]() | Equality |
Tests for equality between two objects.
|
![]() ![]() | Inequality |
Tests for inequality between two objects.
|
![]() ![]() | Multiply(Single, Vector4) |
Scales a vector by the given value.
|
![]() ![]() | Multiply(Vector4, Single) |
Scales a vector by the given value.
|
![]() ![]() | Subtraction |
Subtracts two vectors.
|
![]() ![]() | UnaryNegation |
Reverses the direction of a given vector.
|
Fields
Name | Description | |
---|---|---|
![]() | W |
Gets or sets the W component of the vector.
|
![]() | X |
Gets or sets the X component of the vector.
|
![]() | Y |
Gets or sets the Y component of the vector.
|
![]() | Z |
Gets or sets the Z component of the vector.
|
See Also