Click or drag to resize

Vector3U Structure

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

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

The Vector3U type exposes the following members.

Constructors
  NameDescription
Public methodVector3U
Initializes a new instance of the Vector3U 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(Vector3U)
Gets the angle between this and the other vector.
Public methodAngle(Vector3U)
Gets the angle between this and the other vector.
Public methodCross(Vector3U)
Gets the cross product between this and the other vector.
Public methodCross(Vector3U)
Gets the cross product between this and the other vector.
Public methodDot(Vector3U)
Gets the dot product between this and the other vector.
Public methodDot(Vector3U)
Gets the dot product between this and the other vector.
Public methodEquals(Object)
Gets a value indicating whether the components of this Vector3U are the same as the components of the second specified Vector3U.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Vector3U)
Indicates whether the current Vector3U is equal to another Vector3U.
Public methodEquals(Vector3U)
Indicates whether the current Vector3U is equal to another Vector3U. 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 Vector3U.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds the first Vector3U to the second one.
Public operatorStatic memberDivision(Vector3U, Vector3U)
Divides the first Vector3U through the second one.
Public operatorStatic memberDivision(Vector3U, Single)
Divides the given Vector3U through the scalar.
Public operatorStatic memberEquality
Gets a value indicating whether the components of the first specified Vector3U are the same as the components of the second specified Vector3U.
Public operatorStatic member(Vector3 to Vector3U)
Explicit conversion from Vector3
Public operatorStatic member(Vector3F to Vector3U)
Explicit conversion from Vector3F
Public operatorStatic memberInequality
Gets a value indicating whether the components of the first specified Vector3U are not the same as the components of the second specified Vector3U.
Public operatorStatic memberMultiply(Vector3U, Vector3U)
Multiplicates the first Vector3U by the second one.
Public operatorStatic memberMultiply(Vector3U, Single)
Multiplicates the given Vector3U by the scalar.
Public operatorStatic memberSubtraction
Subtracts the first Vector3U from the second one.
Public operatorStatic memberUnaryPlus
Returns the given Vector3U.
Top
Fields
  NameDescription
Public fieldStatic memberOne
A Vector3U 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 unsigned integer component.
Public fieldY
The Y unsigned integer component.
Public fieldZ
The Z unsigned integer component.
Public fieldStatic memberZero
A Vector3U with the X, Y and Z components being 0.
Top
See Also