Click or drag to resize

Vector3 Structure

Represents a 3D vector.

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

The Vector3 type exposes the following members.

Constructors
  NameDescription
Public methodVector3(Double)
Initializes a new instance of the Vector3 struct with same values for x, y and z components.
Public methodVector3(Single)
Initializes a new instance of the Vector3 struct with same values for x, y and z components.
Public methodVector3(Double, Double)
Initializes a new instance of the Vector3 struct with the z component set to 0.
Public methodVector3(Single, Single)
Initializes a new instance of the Vector3 struct with the z component set to 0.
Public methodVector3(Vector2, Double)
Initializes a new instance of the Vector3 struct.
Public methodVector3(Vector2, Single)
Initializes a new instance of the Vector3 struct.
Public methodVector3(Double, Double, Double)
Initializes a new instance of the Vector3 struct.
Public methodVector3(Single, Single, Single)
Initializes a new instance of the Vector3 struct.
Top
Properties
  NameDescription
Public propertyStatic memberBackward
Returns a Vector3 with components 0, -1, 0.
Public propertyStatic memberDown
Returns a Vector3 with components 0, 0, -1.
Public propertyStatic memberForward
Returns a Vector3 with components 0, 1, 0.
Public propertyIsEmpty
Gets whether this Vector3 is empty.
Public propertyStatic memberLeft
Returns a Vector3 with components -1, 0, 0.
Public propertyLength
Gets the length of this Vector3.
Public propertyLengthSquared
Gets the squared length of this Vector3.
Public propertyStatic memberOne
Returns a Vector3 with each component set to 1.
Public propertyStatic memberRight
Returns a Vector3 with components 1, 0, 0.
Public propertyStatic memberUnitX
Returns a Vector3 with components 1, 0, 0.
Public propertyStatic memberUnitY
Returns a Vector3 with components 0, 1, 0.
Public propertyStatic memberUnitZ
Returns a Vector3 with components 0, 0, 1.
Public propertyStatic memberUp
Returns a Vector3 with components 0, 0, 1.
Public propertyX
Gets the X component of this Vector3.
Public propertyXY
Creates a Vector2 instance with the X and Y components of this Vector3.
Public propertyY
Gets the Y component of this Vector3.
Public propertyZ
Gets the Z component of this Vector3.
Public propertyStatic memberZero
Returns an empty Vector3.
Top
Methods
  NameDescription
Public methodStatic memberBarycentric
Creates a new Vector3 that contains the cartesian coordinates of a vector specified in barycentric coordinates and relative to 3d-triangle.
Public methodStatic memberCatmullRom
Creates a new Vector3 that contains CatmullRom interpolation of the specified vectors.
Public methodStatic memberClamp
Clamps the specified value within a range.
Public methodStatic memberCross
Computes the cross product of two vectors.
Public methodStatic memberDistance
Returns the distance between two vectors.
Public methodStatic memberDistanceSquared
Returns the squared distance between two vectors.
Public methodDistanceTo
Gets the distance to another Vector3.
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(Vector3)
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 Vector3 that contains hermite spline interpolation.
Public methodStatic memberLerp
Creates a new Vector3 that contains linear interpolation of the specified vectors.
Public methodStatic memberMax
Creates a new Vector3 that contains a maximal values from the two vectors.
Public methodStatic memberMin
Creates a new Vector3 that contains a minimal values from the two vectors.
Public methodStatic memberNormalize
Creates a new Vector3 that contains a normalized values from another vector.
Public methodNormalized
Creates a new Vector3 instance with the components normalized to a single unit.
Public methodStatic memberReflect
Creates a new Vector3 that contains reflect vector of the given vector and normal.
Public methodStatic memberSmoothStep
Creates a new Vector3 that contains cubic interpolation of the specified vectors.
Public methodToString
Returns the fully qualified type name of this instance.
(Overrides ValueTypeToString.)
Public methodStatic memberTransform(Vector3, Matrix)
Creates a new Vector3 that contains a transformation of 3d-vector by the specified Matrix.
Public methodStatic memberTransform(Vector3, Quaternion)
Creates a new Vector3 that contains a transformation of 3d-vector by the specified Quaternion, representing the rotation.
Public methodStatic memberTransformNormal
Creates a new Vector3 that contains a transformation of the specified normal by the specified Matrix.
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds the left Vector3's components to the right Vector3's components and stores it in a new Vector3.
Public operatorStatic memberDivision(Vector3, Vector3)
Divides the components Vector3 by the components of the right Vector3 and stores them in a new Vector3.
Public operatorStatic memberDivision(Vector3, Single)
Divides the components Vector3 by the given scalar and stores them in a new Vector3.
Public operatorStatic memberEquality
Tests whether all components of both Vector3 are equivalent.
Public operatorStatic memberInequality
Tests whether any component of both Vector3 are not equivalent.
Public operatorStatic memberMultiply(Vector3, Vector3)
Multiplies the components Vector3 by the components of the right Vector3 and stores them in a new Vector3.
Public operatorStatic memberMultiply(Vector3, Single)
Multiplies the components Vector3 by the given scalar and stores them in a new Vector3.
Public operatorStatic memberSubtraction
Subtracts the right Vector3's components from the left Vector3's components and stores it in a new Vector3.
Public operatorStatic memberUnaryNegation
Creates a Vector3 with the components set to the negative values of the given vector's components.
Top
See Also