Header menu logo Euclid

ZeroToOne Type

A type to represent the result of testing if a float is close to zero, close to one or in between. A number is close to 1.0 by maximum 6 steps of float increment or decrement. So between 0.99999964 and 1.000000715. Same step size for zero. This can be used for clamping the domain on a line.

Union cases

Union case Description

Between

Full Usage: Between

One

Full Usage: One

Outside

Full Usage: Outside

Zero

Full Usage: Zero

Instance members

Instance member Description

this.IsBetween

Full Usage: this.IsBetween

Returns: bool
Returns: bool

this.IsOne

Full Usage: this.IsOne

Returns: bool
Returns: bool

this.IsOutside

Full Usage: this.IsOutside

Returns: bool
Returns: bool

this.IsZero

Full Usage: this.IsZero

Returns: bool
Returns: bool

Type something to start searching.