Click or drag to resize

Vector4U Structure

Represents a four-dimensional vector which uses unsigned integer values.

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

The Vector4U type exposes the following members.

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