Empeld
Empeld plugin documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events
pluginbase.Helpers.Coords.Size3i Struct Reference
Inheritance diagram for pluginbase.Helpers.Coords.Size3i:

Public Member Functions

 Size3i (int width, int length, int height)
 
 Size3i (int cubeSize)
 
bool Equals (Size3i other)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
override string ToString ()
 

Static Public Member Functions

static bool operator== (Size3i left, Size3i right)
 
static bool operator!= (Size3i left, Size3i right)
 
static operator Vector3i (Size3i size)
 
static operator Size3i (Vector3i vec)
 

Public Attributes

int Width
 
int Length
 
int Height
 

Static Public Attributes

static readonly Size3i Zero = new Size3i(0,0,0)
 
static readonly Size3i One = new Size3i(1,1,1)
 

Properties

int Volume [get]
 

Constructor & Destructor Documentation

pluginbase.Helpers.Coords.Size3i.Size3i ( int  width,
int  length,
int  height 
)
10  {
11  Width = width;
12  Length = length;
13  Height = height;
14  }
int Height
Definition: Size3i.cs:7
int Width
Definition: Size3i.cs:7
int Length
Definition: Size3i.cs:7
pluginbase.Helpers.Coords.Size3i.Size3i ( int  cubeSize)
17  {
18  Width = Length = Height = cubeSize;
19  }
int Height
Definition: Size3i.cs:7
int Width
Definition: Size3i.cs:7
int Length
Definition: Size3i.cs:7

Member Function Documentation

bool pluginbase.Helpers.Coords.Size3i.Equals ( Size3i  other)
43  {
44  return this.Width == other.Width && this.Length == other.Length && this.Height == other.Height;
45  }
int Height
Definition: Size3i.cs:7
int Width
Definition: Size3i.cs:7
int Length
Definition: Size3i.cs:7
override bool pluginbase.Helpers.Coords.Size3i.Equals ( object  obj)
48  {
49  if (obj is Size3i)
50  {
51  return this.Equals((Size3i)obj);
52  }
53  return false;
54  }
Size3i(int width, int length, int height)
Definition: Size3i.cs:9
bool Equals(Size3i other)
Definition: Size3i.cs:42
override int pluginbase.Helpers.Coords.Size3i.GetHashCode ( )
86  {
87  return Width << 24 | Length << 12 | Height;
88  }
int Height
Definition: Size3i.cs:7
int Width
Definition: Size3i.cs:7
int Length
Definition: Size3i.cs:7
static pluginbase.Helpers.Coords.Size3i.operator Size3i ( Vector3i  vec)
explicitstatic
79  {
80  return new Size3i(vec.X, vec.Y, vec.Z);
81  }
Size3i(int width, int length, int height)
Definition: Size3i.cs:9
static pluginbase.Helpers.Coords.Size3i.operator Vector3i ( Size3i  size)
explicitstatic
74  {
75  return new Vector3i(size.Width, size.Length, size.Height);
76  }
static readonly Vector3i
All directions, including diagnols
Definition: Vector3i.cs:111
static bool pluginbase.Helpers.Coords.Size3i.operator!= ( Size3i  left,
Size3i  right 
)
static
64  {
65  return left.Width != right.Width
66  || left.Length != right.Length
67  || left.Height != right.Height;
68  }
static bool pluginbase.Helpers.Coords.Size3i.operator== ( Size3i  left,
Size3i  right 
)
static
57  {
58  return left.Width == right.Width
59  && left.Length == right.Length
60  && left.Height == right.Height;
61  }
override string pluginbase.Helpers.Coords.Size3i.ToString ( )
91  {
92  return string.Format("({0}, {1}, {2})", Width, Length, Height);
93  }
int Height
Definition: Size3i.cs:7
int Width
Definition: Size3i.cs:7
int Length
Definition: Size3i.cs:7

Member Data Documentation

int pluginbase.Helpers.Coords.Size3i.Height
int pluginbase.Helpers.Coords.Size3i.Length
readonly Size3i pluginbase.Helpers.Coords.Size3i.One = new Size3i(1,1,1)
static
int pluginbase.Helpers.Coords.Size3i.Width
readonly Size3i pluginbase.Helpers.Coords.Size3i.Zero = new Size3i(0,0,0)
static

Property Documentation

int pluginbase.Helpers.Coords.Size3i.Volume
get

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