Click or drag to resize

Vector4 Structure

Represents a four-dimensional vector which uses integer values.

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

The Vector4 type exposes the following members.

Constructors
  NameDescription
Public methodVector4
Initializes a new instance of the Vector4 struct with the given values for the X, Y, Z and W components.
Top
Properties
  NameDescription
Public propertyItem
Gets or sets the component at the given index.
Top
Methods
  NameDescription
Public methodEquals(Object)
Gets a value indicating whether the components of this Vector4 are the same as the components of the second specified Vector4.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Vector4)
Indicates whether the current Vector4 is equal to another Vector4.
Public methodEquals(Vector4)
Indicates whether the current Vector4 is equal to another Vector4. 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 methodToString
Gets a string describing the components of this Vector4.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds the first Vector4 to the second one.
Public operatorStatic memberDivision(Vector4, Vector4)
Divides the first Vector4 through the second one.
Public operatorStatic memberDivision(Vector4, Single)
Divides the given Vector4 through the scalar.
Public operatorStatic memberEquality
Gets a value indicating whether the components of the first specified Vector4 are the same as the components of the second specified Vector4.
Public operatorStatic member(Vector4F to Vector4)
Explicit conversion from Vector4F
Public operatorStatic member(Vector4U to Vector4)
Explicit conversion from Vector4U
Public operatorStatic memberInequality
Gets a value indicating whether the components of the first specified Vector4 are not the same as the components of the second specified Vector4.
Public operatorStatic memberMultiply(Vector4, Vector4)
Multiplicates the first Vector4 by the second one.
Public operatorStatic memberMultiply(Vector4, Single)
Multiplicates the given Vector4 by the scalar.
Public operatorStatic memberSubtraction
Subtracts the first Vector4 from the second one.
Public operatorStatic memberUnaryNegation
Negates the given Vector4.
Public operatorStatic memberUnaryPlus
Returns the given Vector4.
Top
Fields
  NameDescription
Public fieldStatic memberOne
A Vector4 with the X, Y, Z and W 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 fieldW
The W integer component.
Public fieldX
The X integer component.
Public fieldY
The Y integer component.
Public fieldZ
The Z integer component.
Public fieldStatic memberZero
A Vector4 with the X, Y, Z and W components being 0.
Top
See Also