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

Public Member Functions

 Volume (Vector3i pt, Size3i size)
 
 Volume (Vector3i pt, int cubeSize)
 
 Volume (int x, int y, int z, int width, int length, int height)
 
 Volume (int x, int y, int z, int cubeSize)
 
bool PointIn (Vector3i pt)
 
override int GetHashCode ()
 
bool Equals (Volume cube)
 
override bool Equals (object obj)
 

Public Attributes

Vector3i Point
 
Size3i Size
 

Properties

int Left [get]
 
int Right [get]
 
int Bottom [get]
 
int Top [get]
 
int Floor [get]
 
int Ceiling [get]
 
bool IsCubic [get]
 

Constructor & Destructor Documentation

pluginbase.Helpers.Coords.Volume.Volume ( Vector3i  pt,
Size3i  size 
)
49  {
50  Point = pt;
51  Size = size;
52  }
Vector3i Point
Definition: Volume.cs:7
Size3i Size
Definition: Volume.cs:8
pluginbase.Helpers.Coords.Volume.Volume ( Vector3i  pt,
int  cubeSize 
)
55  {
56  Point = pt;
57  Size = new Size3i(cubeSize);
58  }
Vector3i Point
Definition: Volume.cs:7
Size3i Size
Definition: Volume.cs:8
pluginbase.Helpers.Coords.Volume.Volume ( int  x,
int  y,
int  z,
int  width,
int  length,
int  height 
)
61  {
62  Point = new Vector3i(x,y,z);
63  Size = new Size3i(width, length, height);
64  }
static readonly Vector3i
All directions, including diagnols
Definition: Vector3i.cs:111
Vector3i Point
Definition: Volume.cs:7
Size3i Size
Definition: Volume.cs:8
pluginbase.Helpers.Coords.Volume.Volume ( int  x,
int  y,
int  z,
int  cubeSize 
)
67  {
68  Point = new Vector3i(x,y,z);
69  Size = new Size3i(cubeSize);
70  }
static readonly Vector3i
All directions, including diagnols
Definition: Vector3i.cs:111
Vector3i Point
Definition: Volume.cs:7
Size3i Size
Definition: Volume.cs:8

Member Function Documentation

bool pluginbase.Helpers.Coords.Volume.Equals ( Volume  cube)
87  {
88  return this.Size == cube.Size && this.Point == cube.Point;
89  }
Vector3i Point
Definition: Volume.cs:7
Size3i Size
Definition: Volume.cs:8
override bool pluginbase.Helpers.Coords.Volume.Equals ( object  obj)
92  {
93  if (obj is Volume)
94  {
95  return this.Equals((Volume)obj);
96  }
97  return false;
98  }
bool Equals(Volume cube)
Definition: Volume.cs:86
Volume(Vector3i pt, Size3i size)
Definition: Volume.cs:48
override int pluginbase.Helpers.Coords.Volume.GetHashCode ( )
82  {
83  return this.Point.GetHashCode() ^ this.Size.GetHashCode();
84  }
Vector3i Point
Definition: Volume.cs:7
Size3i Size
Definition: Volume.cs:8
override int GetHashCode()
Definition: Size3i.cs:85
bool pluginbase.Helpers.Coords.Volume.PointIn ( Vector3i  pt)
73  {
74  return !(
75  pt.X < this.Point.X || pt.X >= this.Point.X + this.Size.Width
76  || pt.Y < this.Point.Y || pt.Y >= this.Point.Y + this.Size.Length
77  || pt.Z < this.Point.Z || pt.Z >= this.Point.Z + this.Size.Height
78  );
79  }
Vector3i Point
Definition: Volume.cs:7
int Height
Definition: Size3i.cs:7
Size3i Size
Definition: Volume.cs:8
int Y
The Y coordinate
Definition: Vector3i.cs:23
int Width
Definition: Size3i.cs:7
int Length
Definition: Size3i.cs:7
int X
The X coordinate
Definition: Vector3i.cs:18
int Z
The Z coordinate
Definition: Vector3i.cs:28

Member Data Documentation

Vector3i pluginbase.Helpers.Coords.Volume.Point
Size3i pluginbase.Helpers.Coords.Volume.Size

Property Documentation

int pluginbase.Helpers.Coords.Volume.Bottom
get
int pluginbase.Helpers.Coords.Volume.Ceiling
get
int pluginbase.Helpers.Coords.Volume.Floor
get
bool pluginbase.Helpers.Coords.Volume.IsCubic
get
int pluginbase.Helpers.Coords.Volume.Left
get
int pluginbase.Helpers.Coords.Volume.Right
get
int pluginbase.Helpers.Coords.Volume.Top
get

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