Vector4 Structure |
Namespace: SampSharp.Entities.SAMP
public struct Vector4 : IEquatable<Vector4>
The Vector4 type exposes the following members.
Name | Description | |
---|---|---|
![]() | Vector4(Vector3, Single) |
Initializes a new instance of the Vector4 struct.
|
![]() | Vector4(Vector2, Single, Single) |
Initializes a new instance of the Vector4 struct.
|
![]() | Vector4(Single, Single, Single, Single) |
Initializes a new instance of the Vector4 struct.
|
Name | Description | |
---|---|---|
![]() | IsEmpty |
Gets whether this Vector4 is empty.
|
![]() | Length |
Gets the length of this Vector4.
|
![]() | LengthSquared |
Gets the squared length of this Vector4.
|
![]() ![]() | One |
Returns a Vector4 with each component set to 1.
|
![]() ![]() | UnitW |
Returns a Vector4 with components 0, 0, 0, 1.
|
![]() ![]() | UnitX |
Returns a Vector4 with components 1, 0, 0, 0.
|
![]() ![]() | UnitY |
Returns a Vector4 with components 0, 1, 0, 0.
|
![]() ![]() | UnitZ |
Returns a Vector4 with components 0, 0, 1, 0.
|
![]() | W |
Gets the W component of this Vector4.
|
![]() | X |
Gets the X component of this Vector4.
|
![]() | Y |
Gets the Y component of this Vector4.
|
![]() | Z |
Gets the Z component of this Vector4.
|
![]() ![]() | Zero |
Returns an empty Vector4.
|
Name | Description | |
---|---|---|
![]() ![]() | Barycentric |
Creates a new Vector4 that contains the cartesian coordinates of a vector specified in barycentric
coordinates and relative to 4d-triangle.
|
![]() ![]() | CatmullRom |
Creates a new Vector4 that contains CatmullRom interpolation of the specified vectors.
|
![]() ![]() | Clamp |
Clamps the specified value within a range.
|
![]() ![]() | Distance(Vector4, Vector4) |
Returns the distance between two vectors.
|
![]() ![]() | Distance(Vector4, Vector4, Single) |
Returns the distance between two vectors.
|
![]() ![]() | DistanceSquared |
Returns the squared distance between two vectors.
|
![]() | DistanceTo |
Gets the distance to another Vector4.
|
![]() ![]() | Dot |
Returns a dot product of two vectors.
|
![]() | Equals(Object) |
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).) |
![]() | Equals(Vector4) |
Indicates whether this instance and a specified object are equal.
|
![]() | GetHashCode |
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | Hermite |
Creates a new Vector4 that contains hermite spline interpolation.
|
![]() ![]() | Lerp |
Creates a new Vector4 that contains linear interpolation of the specified vectors.
|
![]() ![]() | Max |
Creates a new Vector4 that contains a maximal values from the two vectors.
|
![]() ![]() | Min |
Creates a new Vector4 that contains a minimal values from the two vectors.
|
![]() ![]() | Normalize |
Creates a new Vector4 that contains a normalized values from another vector.
|
![]() | Normalized |
Creates a new Vector4 instance with the components normalized to a single unit.
|
![]() ![]() | SmoothStep |
Creates a new Vector4 that contains cubic interpolation of the specified vectors.
|
![]() | ToString |
Returns the fully qualified type name of this instance.
(Overrides ValueTypeToString.) |
![]() ![]() | Transform(Vector2, Matrix) |
Creates a new Vector4 that contains a transformation of 2d-vector by the specified
Matrix.
|
![]() ![]() | Transform(Vector3, Matrix) |
Creates a new Vector4 that contains a transformation of 3d-vector by the specified
Matrix.
|
![]() ![]() | Transform(Vector4, Matrix) |
Creates a new Vector4 that contains a transformation of 4d-vector by the specified
Matrix.
|
Name | Description | |
---|---|---|
![]() ![]() | Addition |
Adds the left Vector4's components to the right Vector4's components and stores it in
a
new Vector4.
|
![]() ![]() | Division(Vector4, Vector4) |
Divides the components Vector4 by the components of the right Vector4 and stores them
in a new Vector4.
|
![]() ![]() | Division(Vector4, Single) |
Divides the components Vector4 by the given scalar and stores them in a new Vector4.
|
![]() ![]() | Equality |
Tests whether all components of both Vector4 are equivalent.
|
![]() ![]() | Inequality |
Tests whether any component of both Vector4 are not equivalent.
|
![]() ![]() | Multiply(Vector4, Vector4) |
Multiplies the components Vector4 by the components of the right Vector4 and stores
them in a new Vector4.
|
![]() ![]() | Multiply(Vector4, Single) |
Multiplies the components Vector4 by the given scalar and stores them in a new
Vector4.
|
![]() ![]() | Subtraction |
Subtracts the right Vector4's components from the left Vector4's components and
stores
it in a new Vector4.
|
![]() ![]() | UnaryNegation |
Creates a Vector4 with the components set to the negative values of the given
vector's components.
|