IBoxFOps

Description

[StaticTemplate]
interface Tinman.Terrain.Util.IBoxFOps
<TBox val>
<TRange out val>
<TCoords in val>
<TCoord in val>

Extended by

Box2D struct
Box2F struct
Box3D struct

Defines common operations for box values with floating-point coordinates.

Public / Methods

Distance​Range


[Pure]
public method DistanceRange → (1)

point in : TCoords

The point.

returns → TRange

The distance range.

Computes the distance between the given point in and this box.

Dot


[Pure]
public method Dot → (2)

origin in : TCoords

The origin point.

direction in : TCoords

The unit-length direction vector.

returns → TRange

The dot product range.

Computes the dot product range of this box.

Equals​Almost


[Pure]
public method EqualsAlmost → (1)

other in : TBox

The other box

returns → bool

true if both boxes are similar, false if they are not.

Checks if this box and the given one are similar but necessarily equal.

Scale


[Pure]
public method Scale → (1)

factor in : TCoord

The scale factor.

returns → TBox

The resulting bounding box.

Scales the coordinates of this bounding box.