Empeld
Empeld plugin documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events
pluginbase.Helpers.Coords.Vector3i Struct Reference

A class representing a 3D coordinate of integers More...

Inheritance diagram for pluginbase.Helpers.Coords.Vector3i:

Public Member Functions

 Vector3i (Vector3i vec)
 Construct a vector from another vector More...
 
 Vector3i (int x, int y, int z)
 Construct a vector given its components More...
 

Public Attributes

int X
 The X coordinate More...
 
int Y
 The Y coordinate More...
 
int Z
 The Z coordinate More...
 

Static Public Attributes

static readonly Vector3i Zero = new Vector3i(0,0,0)
 Vector (0,0,0) More...
 
static readonly Vector3i One = new Vector3i(1,1,1)
 The vector (1,1,1) More...
 
static readonly Vector3i UnitX = new Vector3i(1,0,0)
 Vector (1,0,0) More...
 
static readonly Vector3i UnitY = new Vector3i(0,1,0)
 Vector (0,1,0) More...
 
static readonly Vector3i UnitZ = new Vector3i(0,0,1)
 Vector (0,0,1) More...
 
static readonly Vector3i MaxValue = new Vector3i(int.MaxValue, int.MaxValue, int.MaxValue)
 Vector (max,max,max) More...
 
static readonly Vector3i MinValue = new Vector3i(int.MinValue, int.MinValue, int.MinValue)
 Vector (min,min,min) More...
 

Detailed Description

A class representing a 3D coordinate of integers

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

Constructor & Destructor Documentation

pluginbase.Helpers.Coords.Vector3i.Vector3i ( Vector3i  vec)

Construct a vector from another vector

Parameters
vecVec.
35  {
36  X = vec.X;
37  Y = vec.Y;
38  Z = vec.Z;
39  }
int Y
The Y coordinate
Definition: Vector3i.cs:23
int X
The X coordinate
Definition: Vector3i.cs:18
int Z
The Z coordinate
Definition: Vector3i.cs:28
pluginbase.Helpers.Coords.Vector3i.Vector3i ( int  x,
int  y,
int  z 
)

Construct a vector given its components

Parameters
xThe x coordinate.
yThe y coordinate.
zThe z coordinate.
48  {
49  X = x;
50  Y = y;
51  Z = z;
52  }
int Y
The Y coordinate
Definition: Vector3i.cs:23
int X
The X coordinate
Definition: Vector3i.cs:18
int Z
The Z coordinate
Definition: Vector3i.cs:28

Member Data Documentation

readonly Vector3i pluginbase.Helpers.Coords.Vector3i.MaxValue = new Vector3i(int.MaxValue, int.MaxValue, int.MaxValue)
static

Vector (max,max,max)

readonly Vector3i pluginbase.Helpers.Coords.Vector3i.MinValue = new Vector3i(int.MinValue, int.MinValue, int.MinValue)
static

Vector (min,min,min)

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

The vector (1,1,1)

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

Vector (1,0,0)

All positive axis aligned directions for the vector (1,0,0) (0,1,0) (0,0,1)

Attribute: ] PositiveDirections = new Vector3i[

{

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

Vector (0,1,0)

readonly Vector3i pluginbase.Helpers.Coords.Vector3i.UnitZ = new Vector3i(0,0,1)
static

Vector (0,0,1)

int pluginbase.Helpers.Coords.Vector3i.X

The X coordinate

int pluginbase.Helpers.Coords.Vector3i.Y

The Y coordinate

int pluginbase.Helpers.Coords.Vector3i.Z

The Z coordinate

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

Vector (0,0,0)


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