Click or drag to resize

Vector2U Structure

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

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

The Vector2U type exposes the following members.

Constructors
  NameDescription
Public methodVector2U
Initializes a new instance of the Vector2U structure with the given values for the X and Y 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 Vector2U are the same as the components of the second specified Vector2U.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Vector2U)
Indicates whether the current Vector2U is equal to another Vector2U.
Public methodEquals(Vector2U)
Indicates whether the current Vector2U is equal to another Vector2U. 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 methodIntersects
Returns a value indicating whether the Vector2U lies within the provided Rectangle.
Public methodToString
Gets a string describing the components of this Vector2U.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds the first Vector2U to the second one.
Public operatorStatic memberDivision(Vector2U, Vector2U)
Divides the first Vector2U through the second one.
Public operatorStatic memberDivision(Vector2U, Single)
Divides the given Vector2U through the scalar.
Public operatorStatic memberEquality
Gets a value indicating whether the components of the first specified Vector2U are the same as the components of the second specified Vector2U.
Public operatorStatic member(Vector2 to Vector2U)
Explicit conversion from Vector2
Public operatorStatic member(Vector2F to Vector2U)
Explicit conversion from Vector2F
Public operatorStatic memberInequality
Gets a value indicating whether the components of the first specified Vector2U are not the same as the components of the second specified Vector2.
Public operatorStatic memberMultiply(Vector2U, Vector2U)
Multiplicates the first Vector2U by the second one.
Public operatorStatic memberMultiply(Vector2U, Single)
Multiplicates the given Vector2U by the scalar.
Public operatorStatic memberSubtraction
Subtracts the first Vector2U from the second one.
Public operatorStatic memberUnaryPlus
Returns the given Vector2U.
Top
Fields
  NameDescription
Public fieldStatic memberOne
A Vector2U with the X and Y 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 fieldStatic memberZero
A Vector2U with the X and Y components being 0.
Top
See Also