|
Empeld
Empeld plugin documentation.
|
Represent a 3D axis-aligned volume More...
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) | |
| Volume | NormalForm () |
| Creates the normal-form volume (That is, the size will always be positive) More... | |
| bool | PointIn (Vector3i pt) |
| bool | Intersects (Volume otherVolume) |
| Check if this volume intersects the other volume More... | |
| override int | GetHashCode () |
| bool | Equals (Volume cube) |
| override bool | Equals (object obj) |
| override string | ToString () |
Static Public Member Functions | |
| static Volume | RadiusAround (Vector3i pt, int radius) |
| Creates a volume around a point, with a radius of size More... | |
| static Volume | RadiusBelow (Vector3i pt, int radius) |
| Creates a volume around a point, with a radius of size, but that doesn't go above a point More... | |
| static Volume | RadiusPlaneZ (Vector3i pt, int radius, int depth) |
| Creates a radius around a plane with a z-depth More... | |
| static Volume | FromPointCloud (IEnumerable< Vector3i > points) |
| From a set of Vector3i points, returns a volume that holds them all. Will have at least size-1 if it has any points . Will be zero, otherwise More... | |
| static Volume | FromPoints (Vector3i a, Vector3i b) |
| Provides a normal-form volume that represents the space between two points More... | |
Public Attributes | |
| Vector3i | Point |
| Size3i | Size |
| Vector3i | Center => new Vector3i(this.Point.X + this.Size.Width / 2, this.Point.Y + this.Size.Length / 2, this.Point.Z + this.Size.Height / 2) |
| Approximate center of the volume (integer rounded) More... | |
Static Public Attributes | |
| static readonly Volume | Zero = new Volume() |
Properties | |
| int | Left [get] |
| int | Right [get] |
| int | Bottom [get] |
| int | Top [get] |
| int | Floor [get] |
| int | Ceiling [get] |
| bool | IsCubic [get] |
Represent a 3D axis-aligned volume
| pluginbase.Helpers.Coords.Volume.Volume | ( | Vector3i | pt, |
| int | cubeSize | ||
| ) |
| pluginbase.Helpers.Coords.Volume.Volume | ( | int | x, |
| int | y, | ||
| int | z, | ||
| int | width, | ||
| int | length, | ||
| int | height | ||
| ) |
| pluginbase.Helpers.Coords.Volume.Volume | ( | int | x, |
| int | y, | ||
| int | z, | ||
| int | cubeSize | ||
| ) |
| bool pluginbase.Helpers.Coords.Volume.Equals | ( | Volume | cube | ) |
| override bool pluginbase.Helpers.Coords.Volume.Equals | ( | object | obj | ) |
|
static |
From a set of Vector3i points, returns a volume that holds them all. Will have at least size-1 if it has any points . Will be zero, otherwise
| points | Points. |
Provides a normal-form volume that represents the space between two points
| a | The alpha component. |
| b | The blue component. |
| override int pluginbase.Helpers.Coords.Volume.GetHashCode | ( | ) |
| bool pluginbase.Helpers.Coords.Volume.Intersects | ( | Volume | otherVolume | ) |
Check if this volume intersects the other volume
| otherVolume | Other volume. |
| Volume pluginbase.Helpers.Coords.Volume.NormalForm | ( | ) |
Creates the normal-form volume (That is, the size will always be positive)
| bool pluginbase.Helpers.Coords.Volume.PointIn | ( | Vector3i | pt | ) |
Creates a volume around a point, with a radius of size
| pt | Point. |
| radius | Size. |
Creates a volume around a point, with a radius of size, but that doesn't go above a point
| pt | Point. |
| radius | Size. |
|
static |
Creates a radius around a plane with a z-depth
| pt | Point. |
| radius | Radius. |
| depth | Depth. |
| override string pluginbase.Helpers.Coords.Volume.ToString | ( | ) |
| Vector3i pluginbase.Helpers.Coords.Volume.Center => new Vector3i(this.Point.X + this.Size.Width / 2, this.Point.Y + this.Size.Length / 2, this.Point.Z + this.Size.Height / 2) |
Approximate center of the volume (integer rounded)
The center.
| Vector3i pluginbase.Helpers.Coords.Volume.Point |
| Size3i pluginbase.Helpers.Coords.Volume.Size |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |