FREE TRIAL

|

☀
☾
struct

Alignment

A HorizontalAlignment, VerticalAlignment, and DepthAlignment.

Fields

X

The X axis alignment

Y

The Y axis alignment

Z

The Z axis alignment

Static Fields

Back

X == Center
Y == Center
Z == Back

Bottom

X == Center
Y == Bottom
Z == Center

BottomCenter

X == Center
Y == Bottom
Z == Center

BottomCenterBack

X == Center
Y == Bottom
Z == Back

BottomCenterCenter

X == Center
Y == Bottom
Z == Center

BottomCenterFront

X == Center
Y == Bottom
Z == Front

BottomLeft

X == Left
Y == Bottom
Z == Center

BottomLeftBack

X == Left
Y == Bottom
Z == Back

BottomLeftCenter

X == Left
Y == Bottom
Z == Center

BottomLeftFront

X == Left
Y == Bottom
Z == Front

BottomRight

X == Right
Y == Bottom
Z == Center

BottomRightBack

X == Right
Y == Bottom
Z == Back

BottomRightCenter

X == Right
Y == Bottom
Z == Center

BottomRightFront

X == Right
Y == Bottom
Z == Front

Center

X == Center
Y == Center
Z == Center

CenterCenter

X == Center
Y == Center
Z == Center

CenterCenterBack

X == Center
Y == Center
Z == Back

CenterCenterCenter

X == Center
Y == Center
Z == Center

CenterCenterFront

X == Center
Y == Center
Z == Front

CenterLeft

X == Left
Y == Center
Z == Center

CenterLeftBack

X == Left
Y == Center
Z == Back

CenterLeftCenter

X == Left
Y == Center
Z == Center

CenterLeftFront

X == Left
Y == Center
Z == Front

CenterRight

X == Right
Y == Center
Z == Center

CenterRightBack

X == Right
Y == Center
Z == Back

CenterRightCenter

X == Right
Y == Center
Z == Center

CenterRightFront

X == Right
Y == Center
Z == Front

Front

X == Center
Y == Center
Z == Front

Left

X == Left
Y == Center
Z == Center

Right

X == Right
Y == Center
Z == Center

Top

X == Center
Y == Top
Z == Center

TopCenter

X == Center
Y == Top
Z == Center

TopCenterBack

X == Center
Y == Top
Z == Back

TopCenterCenter

X == Center
Y == Top
Z == Center

TopCenterFront

X == Center
Y == Top
Z == Front

TopLeft

X == Left
Y == Top
Z == Center

TopLeftBack

X == Left
Y == Top
Z == Back

TopLeftCenter

X == Left
Y == Top
Z == Center

TopLeftFront

X == Left
Y == Top
Z == Front

TopRight

X == Right
Y == Top
Z == Center

TopRightBack

X == Right
Y == Top
Z == Back

TopRightCenter

X == Right
Y == Top
Z == Center

TopRightFront

X == Right
Y == Top
Z == Center

Properties

Item[int]

Access each alignment by axis index.

Constructors

Alignment(HorizontalAlignment, VerticalAlignment)

Construct a 2D alignment.

Alignment(HorizontalAlignment, VerticalAlignment, DepthAlignment)

Construct a new alignment

Alignment(int, int)

Construct a 2D alignment.

Alignment(int, int, int)

Construct a 3D alignment

Alignment(float, float)

Construct a 2D alignment.

Alignment(float, float, float)

Construct a 3D alignment.

Operators

Explicit(Alignment to Vector2)

Converts an alignment to a Vector2.

Explicit(Alignment to Vector3)

Converts an Alignment to a Vector3.

Explicit(Vector2 to Alignment)

Converts a Vector2 to an Alignment.

Explicit(Vector3 to Alignment)

Converts a Vector3 to an Alignment.

UnaryNegation(Alignment)

Negation operator, inverts the alignment.

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