Vec2I

Description

struct Tinman.Core.Math.Vectors.Vec2I

Derived from

IVec2Ops<Vec2I, int32>

A two-dimensional vector with 32-bit integer precision.

/     \
|  X  |
|  Y  |
\     /

Public / Constants

Zero


public static readonly attribute Zero → (Vec2I)

The zero vector.

Public / Constructors

Vec2​I


public constructor Vec2I → (2)

in : int32

X-coordinate of vector.

in : int32

Y-coordinate of vector.

Creates a new instance of Vec2I.

Public / Attributes

X


public readonly attribute X → (int32)

X-coordinate of vector.

Y


public readonly attribute Y → (int32)

Y-coordinate of vector.

Serialization

Serializer


public static readonly attribute Serializer → (ITypeSerializerEx<Vec2I>)

The serialization helper object for values of Vec2I.