Empeld
Empeld plugin documentation.
pluginbase.Helpers.Coords.Vector2i Struct Reference

A 2d struct of integers More...

Inheritance diagram for pluginbase.Helpers.Coords.Vector2i:

Public Member Functions

 Vector2i (Vector2i vec)
 
 Vector2i (int x, int y)
 

Public Attributes

int X
 The X component More...
 
int Y
 The Y component More...
 

Static Public Attributes

static readonly Vector2i Zero = new Vector2i(0, 0)
 Vector (0,0) More...
 
static readonly Vector2i UnitX = new Vector2i(1, 0)
 Vector (1,0) More...
 
static readonly Vector2i UnitY = new Vector2i(0, 1)
 Vector (0,1) More...
 
static readonly Vector2i One = new Vector2i(1, 1)
 Vector (1,1) More...
 

Detailed Description

A 2d struct of integers

Attribute: StructLayout(LayoutKind.Sequential, Pack = 1)

Constructor & Destructor Documentation

◆ Vector2i() [1/2]

pluginbase.Helpers.Coords.Vector2i.Vector2i ( Vector2i  vec)
24  {
25  this.X = vec.X;
26  this.Y = vec.Y;
27  }
int X
The X component
Definition: Vector2i.cs:16
int Y
The Y component
Definition: Vector2i.cs:21

◆ Vector2i() [2/2]

pluginbase.Helpers.Coords.Vector2i.Vector2i ( int  x,
int  y 
)
30  {
31  this.X = x;
32  this.Y = y;
33  }
int X
The X component
Definition: Vector2i.cs:16
int Y
The Y component
Definition: Vector2i.cs:21

Member Data Documentation

◆ One

readonly Vector2i pluginbase.Helpers.Coords.Vector2i.One = new Vector2i(1, 1)
static

Vector (1,1)

◆ UnitX

static readonly Vector2i pluginbase.Helpers.Coords.Vector2i.UnitX = new Vector2i(1, 0)
static

Vector (1,0)

Enumerates all the axis-aligned unit-length directions (1,0),(-1,0),(0,1),(0,-1)

Attribute: ] AxisAlignedDirections = new Vector2i[

{

◆ UnitY

static readonly Vector2i pluginbase.Helpers.Coords.Vector2i.UnitY = new Vector2i(0, 1)
static

Vector (0,1)

◆ X

int pluginbase.Helpers.Coords.Vector2i.X

The X component

◆ Y

int pluginbase.Helpers.Coords.Vector2i.Y

The Y component

◆ Zero

readonly Vector2i pluginbase.Helpers.Coords.Vector2i.Zero = new Vector2i(0, 0)
static

Vector (0,0)


The documentation for this struct was generated from the following file: