FREE TRIAL

|

☀
☾
struct

ThreeD<T>

A generic 3D wrapper.

Type Parameters
Name Description
T

The unmanaged type to store per 3D axis, X, Y, and Z.

Fields

X

The value mapped to the X axis.

Y

The value mapped to the Y axis.

Z

The value mapped to the Z axis.

Properties

Item[int]

Access each T by axis index.

XY

Maps the X and Y values to a TwoD<T>.

XZ

Maps the X and Z values to a TwoD<T>.

YZ

Maps the Y and Z values to a TwoD<T>.

Methods

Equals

Equality compare.

Constructors

ThreeD(T, T, T)

Constructs a new ThreeD<T>.

Operators

Explicit(ThreeD<T> to TwoD<T>)

Drops the Z component and returns X and Y.

Implicit(T to ThreeD<T>)

Assigns both X, Y, and Z to the provided value.

Implicit(TwoD<T> to ThreeD<T>)

Assigns both X and Y to value.X and value.Y, respectively, and assigns Z to default"/>.

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