FREE TRIAL

|

☀
☾

Alignment Constructor

Alignment(HorizontalAlignment, VerticalAlignment, DepthAlignment)

Construct a new alignment

Declaration
public Alignment(HorizontalAlignment x, VerticalAlignment y, DepthAlignment z)
Parameters
Type Name Description
HorizontalAlignment x

The alignment assigned to X

VerticalAlignment y

The alignment assigned to Y

DepthAlignment z

The alignment assigned to Z

Alignment(int, int, int)

Construct a 3D alignment

Declaration
public Alignment(int x, int y, int z)
Parameters
Type Name Description
int x

The alignment assigned to X, clamped between [-1, 1]
-1 => Left
0 => Center
1 => Right

int y

The alignment assigned to Y, clamped between [-1, 1]
-1 => Bottom
0 => Center
1 => Top

int z

The alignment assigned to Z, clamped between [-1, 1]
-1 => Front
0 => Center
1 => Back

Alignment(float, float, float)

Construct a 3D alignment.

Declaration
public Alignment(float x, float y, float z)
Parameters
Type Name Description
float x

The alignment assigned to X, clamped between [-1, 1]
-1 => Left
0 => Center
1 => Right

float y

The alignment assigned to Y, clamped between [-1, 1]
-1 => Bottom
0 => Center
1 => Top

float z

The alignment assigned to Z, clamped between [-1, 1]
-1 => Front
0 => Center
1 => Back

Alignment(HorizontalAlignment, VerticalAlignment)

Construct a 2D alignment.

Remarks

Z will be assigned to Center

Declaration
public Alignment(HorizontalAlignment x, VerticalAlignment y)
Parameters
Type Name Description
HorizontalAlignment x

The alignment assigned to X

VerticalAlignment y

The alignment assigned to Y

Alignment(int, int)

Construct a 2D alignment.

Remarks

Z will be assigned to Center

Declaration
public Alignment(int x, int y)
Parameters
Type Name Description
int x

The alignment assigned to X, clamped between [-1, 1]
-1 => Left
0 => Center
1 => Right

int y

The alignment assigned to Y, clamped between [-1, 1]
-1 => Bottom
0 => Center
1 => Top

Alignment(float, float)

Construct a 2D alignment.

Remarks

Z will be assigned to Center

Declaration
public Alignment(float x, float y)
Parameters
Type Name Description
float x

The alignment assigned to X, clamped between [-1, 1]
-1 => Left
0 => Center
1 => Right

float y

The alignment assigned to Y, clamped between [-1, 1]
-1 => Bottom
0 => Center
1 => Top

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