Vector3 Structure |
Namespace: SampSharp.GameMode
public struct Vector3 : IEquatable<Vector3>
The Vector3 type exposes the following members.
Name | Description | |
---|---|---|
![]() | Vector3(Double) |
Initializes a new instance of the Vector3 struct with same values for x, y and z components.
|
![]() | Vector3(Single) |
Initializes a new instance of the Vector3 struct with same values for x, y and z components.
|
![]() | Vector3(Double, Double) |
Initializes a new instance of the Vector3 struct with the z component set to 0.
|
![]() | Vector3(Single, Single) |
Initializes a new instance of the Vector3 struct with the z component set to 0.
|
![]() | Vector3(Vector2, Double) |
Initializes a new instance of the Vector3 struct.
|
![]() | Vector3(Vector2, Single) |
Initializes a new instance of the Vector3 struct.
|
![]() | Vector3(Double, Double, Double) |
Initializes a new instance of the Vector3 struct.
|
![]() | Vector3(Single, Single, Single) |
Initializes a new instance of the Vector3 struct.
|
Name | Description | |
---|---|---|
![]() ![]() | Backward |
Returns a Vector3 with components 0, -1, 0.
|
![]() ![]() | Down |
Returns a Vector3 with components 0, 0, -1.
|
![]() ![]() | Forward |
Returns a Vector3 with components 0, 1, 0.
|
![]() | IsEmpty |
Gets whether this Vector3 is empty.
|
![]() ![]() | Left |
Returns a Vector3 with components -1, 0, 0.
|
![]() | Length |
Gets the length of this Vector3.
|
![]() | LengthSquared |
Gets the squared length of this Vector3.
|
![]() ![]() | One |
Returns a Vector3 with each component set to 1.
|
![]() ![]() | Right |
Returns a Vector3 with components 1, 0, 0.
|
![]() ![]() | UnitX |
Returns a Vector3 with components 1, 0, 0.
|
![]() ![]() | UnitY |
Returns a Vector3 with components 0, 1, 0.
|
![]() ![]() | UnitZ |
Returns a Vector3 with components 0, 0, 1.
|
![]() ![]() | Up |
Returns a Vector3 with components 0, 0, 1.
|
![]() | X |
Gets the X component of this Vector3.
|
![]() | XY |
Creates a Vector2 instance with the X and Y components of this Vector3.
|
![]() | Y |
Gets the Y component of this Vector3.
|
![]() | Z |
Gets the Z component of this Vector3.
|
![]() ![]() | Zero |
Returns an empty Vector3.
|
Name | Description | |
---|---|---|
![]() ![]() | Barycentric |
Creates a new Vector3 that contains the cartesian coordinates of a vector specified in barycentric
coordinates and relative to 3d-triangle.
|
![]() ![]() | CatmullRom |
Creates a new Vector3 that contains CatmullRom interpolation of the specified vectors.
|
![]() ![]() | Clamp |
Clamps the specified value within a range.
|
![]() ![]() | Cross |
Computes the cross product of two vectors.
|
![]() ![]() | Distance |
Returns the distance between two vectors.
|
![]() ![]() | DistanceSquared |
Returns the squared distance between two vectors.
|
![]() | DistanceTo |
Gets the distance to another Vector3.
|
![]() ![]() | Dot |
Returns a dot product of two vectors.
|
![]() | Equals(Object) |
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).) |
![]() | Equals(Vector3) |
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 Vector3 that contains hermite spline interpolation.
|
![]() ![]() | Lerp |
Creates a new Vector3 that contains linear interpolation of the specified vectors.
|
![]() ![]() | Max |
Creates a new Vector3 that contains a maximal values from the two vectors.
|
![]() ![]() | Min |
Creates a new Vector3 that contains a minimal values from the two vectors.
|
![]() ![]() | Normalize |
Creates a new Vector3 that contains a normalized values from another vector.
|
![]() | Normalized |
Creates a new Vector3 instance with the components normalized to a single unit.
|
![]() ![]() | Reflect |
Creates a new Vector3 that contains reflect vector of the given vector and normal.
|
![]() ![]() | SmoothStep |
Creates a new Vector3 that contains cubic interpolation of the specified vectors.
|
![]() | ToString |
Returns the fully qualified type name of this instance.
(Overrides ValueTypeToString.) |
![]() ![]() | Transform(Vector3, Matrix) |
Creates a new Vector3 that contains a transformation of 3d-vector by the specified
Matrix.
|
![]() ![]() | Transform(Vector3, Quaternion) |
Creates a new Vector3 that contains a transformation of 3d-vector by the specified
Quaternion, representing the rotation.
|
![]() ![]() | TransformNormal |
Creates a new Vector3 that contains a transformation of the specified normal by the specified
Matrix.
|
Name | Description | |
---|---|---|
![]() ![]() | Addition |
Adds the left Vector3's components to the right Vector3's components and stores it in
a
new Vector3.
|
![]() ![]() | Division(Vector3, Vector3) |
Divides the components Vector3 by the components of the right Vector3 and stores them
in a new Vector3.
|
![]() ![]() | Division(Vector3, Single) |
Divides the components Vector3 by the given scalar and stores them in a new Vector3.
|
![]() ![]() | Equality |
Tests whether all components of both Vector3 are equivalent.
|
![]() ![]() | Inequality |
Tests whether any component of both Vector3 are not equivalent.
|
![]() ![]() | Multiply(Vector3, Vector3) |
Multiplies the components Vector3 by the components of the right Vector3 and stores
them in a new Vector3.
|
![]() ![]() | Multiply(Vector3, Single) |
Multiplies the components Vector3 by the given scalar and stores them in a new
Vector3.
|
![]() ![]() | Subtraction |
Subtracts the right Vector3's components from the left Vector3's components and
stores
it in a new Vector3.
|
![]() ![]() | UnaryNegation |
Creates a Vector3 with the components set to the negative values of the given
vector's components.
|