FREE TRIAL

|

☀
☾
struct

MinMax2

A min/max range, per 2D component, X and Y.

Remarks

X and First read from and write to the same location in memory, as do Y and Second. This makes them interchangable and subject to user preference or context.

Fields

First

The MinMax used to clamp the First component.

Second

The MinMax used to clamp the Second component.

X

The MinMax used to clamp the X component.

Y

The MinMax used to clamp the Y component.

Static Fields

Positive

A MinMax2 where Min == 0 and Max == float.PositiveInfinity.

Unclamped

A MinMax2 where Min == float.NegativeInfinity and Max == float.PositiveInfinity.

Properties

Item[int]

Access each component by axis index.

Max

The maximum allowed measurement in units, component-wise.

Min

The minimum allowed measurement in units, component-wise.

Constructors

MinMax2(MinMax, MinMax)

Construct a new MinMax2.

See Also

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