Click or drag to resize

Vector4 Structure

Represents a 4D vector.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public struct Vector4 : IEquatable<Vector4>

The Vector4 type exposes the following members.

Constructors
  NameDescription
Public methodVector4(Vector3, Single)
Initializes a new instance of the Vector4 struct.
Public methodVector4(Vector2, Single, Single)
Initializes a new instance of the Vector4 struct.
Public methodVector4(Single, Single, Single, Single)
Initializes a new instance of the Vector4 struct.
Top
Properties
  NameDescription
Public propertyIsEmpty
Gets whether this Vector4 is empty.
Public propertyLength
Gets the length of this Vector4.
Public propertyLengthSquared
Gets the squared length of this Vector4.
Public propertyStatic memberOne
Returns a Vector4 with each component set to 1.
Public propertyStatic memberUnitW
Returns a Vector4 with components 0, 0, 0, 1.
Public propertyStatic memberUnitX
Returns a Vector4 with components 1, 0, 0, 0.
Public propertyStatic memberUnitY
Returns a Vector4 with components 0, 1, 0, 0.
Public propertyStatic memberUnitZ
Returns a Vector4 with components 0, 0, 1, 0.
Public propertyW
Gets the W component of this Vector4.
Public propertyX
Gets the X component of this Vector4.
Public propertyY
Gets the Y component of this Vector4.
Public propertyZ
Gets the Z component of this Vector4.
Public propertyStatic memberZero
Returns an empty Vector4.
Top
Methods
  NameDescription
Public methodStatic memberBarycentric
Creates a new Vector4 that contains the cartesian coordinates of a vector specified in barycentric coordinates and relative to 4d-triangle.
Public methodStatic memberCatmullRom
Creates a new Vector4 that contains CatmullRom interpolation of the specified vectors.
Public methodStatic memberClamp
Clamps the specified value within a range.
Public methodStatic memberDistance(Vector4, Vector4)
Returns the distance between two vectors.
Public methodStatic memberDistance(Vector4, Vector4, Single)
Returns the distance between two vectors.
Public methodStatic memberDistanceSquared
Returns the squared distance between two vectors.
Public methodDistanceTo
Gets the distance to another Vector4.
Public methodStatic memberDot
Returns a dot product of two vectors.
Public methodEquals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Vector4)
Indicates whether this instance and a specified object are equal.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberHermite
Creates a new Vector4 that contains hermite spline interpolation.
Public methodStatic memberLerp
Creates a new Vector4 that contains linear interpolation of the specified vectors.
Public methodStatic memberMax
Creates a new Vector4 that contains a maximal values from the two vectors.
Public methodStatic memberMin
Creates a new Vector4 that contains a minimal values from the two vectors.
Public methodStatic memberNormalize
Creates a new Vector4 that contains a normalized values from another vector.
Public methodNormalized
Creates a new Vector4 instance with the components normalized to a single unit.
Public methodStatic memberSmoothStep
Creates a new Vector4 that contains cubic interpolation of the specified vectors.
Public methodToString
Returns the fully qualified type name of this instance.
(Overrides ValueTypeToString.)
Public methodStatic memberTransform(Vector2, Matrix)
Creates a new Vector4 that contains a transformation of 2d-vector by the specified Matrix.
Public methodStatic memberTransform(Vector3, Matrix)
Creates a new Vector4 that contains a transformation of 3d-vector by the specified Matrix.
Public methodStatic memberTransform(Vector4, Matrix)
Creates a new Vector4 that contains a transformation of 4d-vector by the specified Matrix.
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds the left Vector4's components to the right Vector4's components and stores it in a new Vector4.
Public operatorStatic memberDivision(Vector4, Vector4)
Divides the components Vector4 by the components of the right Vector4 and stores them in a new Vector4.
Public operatorStatic memberDivision(Vector4, Single)
Divides the components Vector4 by the given scalar and stores them in a new Vector4.
Public operatorStatic memberEquality
Tests whether all components of both Vector4 are equivalent.
Public operatorStatic memberInequality
Tests whether any component of both Vector4 are not equivalent.
Public operatorStatic memberMultiply(Vector4, Vector4)
Multiplies the components Vector4 by the components of the right Vector4 and stores them in a new Vector4.
Public operatorStatic memberMultiply(Vector4, Single)
Multiplies the components Vector4 by the given scalar and stores them in a new Vector4.
Public operatorStatic memberSubtraction
Subtracts the right Vector4's components from the left Vector4's components and stores it in a new Vector4.
Public operatorStatic memberUnaryNegation
Creates a Vector4 with the components set to the negative values of the given vector's components.
Top
See Also