FREE TRIAL

|

☀
☾
struct

LengthBounds

A set of Lengths used to configure offsets from each face of an axis-aligned bounding box.

Fields

Back

The Length offset from a bounds' back face.

Bottom

The Length offset from a bounds' bottom face.

Front

The Length offset from a bounds' front face.

Left

The Length offset from a bounds' left face.

Right

The Length offset from a bounds' right face.

Top

The Length offset from a bounds' top face.

X

Left and Right as a Length2 pair.

XY

The XY face offsets of this LengthBounds as a LengthRect.

Y

Bottom and Top as a Length2 pair.

Z

Front and Back as a Length2 pair.

Properties

Item[int]

Access each Length2 by axis index.

Percent

Assign all offsets, Left, Right, Bottom, Top, Front, and Back, to a Percent Length with the given percent, 1 == 100%.

Value

Assign all offsets, Left, Right, Bottom, Top, Front, and Back, to a Value Length with the given value.

Constructors

LengthBounds(Length, Length, Length, Length, Length, Length)

Constructs a new LengthBounds, specified per face.

LengthBounds(Length2, Length2, Length2)

Constructs a new LengthBounds, specified per axis.

Operators

Implicit(Length to LengthBounds)

Constructs a new LengthBounds and assigns each edge offset to the provided length.

Implicit(LengthRect to LengthBounds)

Constructs a new LengthBounds where XY == rect and Z == Zero.

Implicit(float to LengthBounds)

Constructs a new LengthBounds and assigns each edge offset to a Value Length of value.

☀
☾
In This Article
Legal EmailContact Github
Copyright © 2022 Supernova Technologies, LLC