BoxFAxo

References
public readonly struct BoxFAxo
Represents an axonometric, three-dimensional box inside a rectangle.

Constructors

BoxFAxo

#
public BoxFAxo(RectangleF bounds, float depth)
Create a new box.
bounds (RectangleF)Two dimensional boundary of box.
depth (float)Depth of box as a normalised factor.

Properties

Bounds

#
public RectangleF Bounds { get; }
Gets the two-dimensional boundary.

Depth

#
public float Depth { get; }
Gets the normalised depth factor.

IsEmpty

#
public bool IsEmpty { get; }
Gets whether this box has been properly initialized and whether the bounds are not zero.

Indexers

this[]

#
public PointF this[int index] { get; }
Gets one of the box corner points.
index (int)Corners index.

0 = lower left front.

1 = lower right front.

2 = lower right back.

3 = lower left back.

4 = upper left front.

5 = upper right front.

6 = upper right back.

7 = upper left back.

Point at corner.

Methods

PointAt

#
public PointF PointAt(float x, float y, float z)
Gets the 2D point at the given coordinate.
x (float)Normalised x coordinate.
y (float)Normalised y coordinate.
z (float)Normalised z coordinate.
Projected two-dimensional point.

XSliceAt

#
public PointF[] XSliceAt(float x)
Gets the 2D isometric rectangular slice at the given x coordinate.
x (float)Normalised x coordinate.
Array of four corner points.

YSliceAt

#
public RectangleF YSliceAt(float y)
Gets the 2D rectangular slice at the given y coordinate.
y (float)normalised y coordinate.
Projected two-dimensional rectangle.

ZSliceAt

#
public PointF[] ZSliceAt(float z)
Gets the 2D isometric rectangular slice at the given z coordinate.
z (float)Normalised z coordinate.
Array of four corner points.