Click or drag to resize

Vector3 Structure

Represents a three-dimensional vector which uses integer values.

Namespace:  Syroot.Maths
Assembly:  Syroot.Maths (in Syroot.Maths.dll) Version: 1.5.3
Syntax
public struct Vector3 : IEquatable<Vector3>, 
	IEquatableByRef<Vector3>

The Vector3 type exposes the following members.

Constructors
  NameDescription
Public methodVector3
Initializes a new instance of the Vector3 structure with the given values for the X, Y and Z components.
Top
Properties
  NameDescription
Public propertyItem
Gets or sets the component at the given index.
Public propertyLength
Gets the length of this vector.
Top
Methods
  NameDescription
Public methodAngle(Vector3)
Gets the angle between this and the other vector.
Public methodAngle(Vector3)
Gets the angle between this and the other vector.
Public methodCross(Vector3)
Gets the cross product between this and the other vector.
Public methodCross(Vector3)
Gets the cross product between this and the other vector.
Public methodDot(Vector3)
Gets the dot product between this and the other vector.
Public methodDot(Vector3)
Gets the dot product between this and the other vector.
Public methodEquals(Object)
Gets a value indicating whether the components of this Vector3 are the same as the components of the second specified Vector3.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Vector3)
Indicates whether the current Vector3 is equal to another Vector3.
Public methodEquals(Vector3)
Indicates whether the current Vector3 is equal to another Vector3. Structures are passed by reference to avoid stack structure copying.
Public methodGetHashCode
Gets a hash code as an indication for object equality.
(Overrides ValueTypeGetHashCode.)
Public methodNormalize
Normalizes the length of this vector.
Public methodNormalized
Returns a normalized version of this vector.
Public methodToString
Gets a string describing the components of this Vector3.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds the first Vector3 to the second one.
Public operatorStatic memberDivision(Vector3, Vector3)
Divides the first Vector3 through the second one.
Public operatorStatic memberDivision(Vector3, Single)
Divides the given Vector3 through the scalar.
Public operatorStatic memberEquality
Gets a value indicating whether the components of the first specified Vector3 are the same as the components of the second specified Vector3.
Public operatorStatic member(Vector3F to Vector3)
Explicit conversion from Vector3F
Public operatorStatic member(Vector3U to Vector3)
Explicit conversion from Vector3U
Public operatorStatic memberInequality
Gets a value indicating whether the components of the first specified Vector3 are not the same as the components of the second specified Vector3.
Public operatorStatic memberMultiply(Vector3, Vector3)
Multiplicates the first Vector3 by the second one.
Public operatorStatic memberMultiply(Vector3, Single)
Multiplicates the given Vector3 by the scalar.
Public operatorStatic memberSubtraction
Subtracts the first Vector3 from the second one.
Public operatorStatic memberUnaryNegation
Negates the given Vector3.
Public operatorStatic memberUnaryPlus
Returns the given Vector3.
Top
Fields
  NameDescription
Public fieldStatic memberOne
A Vector3 with the X, Y and Z components being 1.
Public fieldStatic memberSizeInBytes
Gets the size of this structure.
Public fieldStatic memberValueCount
Gets the amount of value types required to represent this structure.
Public fieldX
The X integer component.
Public fieldY
The Y integer component.
Public fieldZ
The Z integer component.
Public fieldStatic memberZero
A Vector3 with the X, Y and Z components being 0.
Top
See Also