ISpatialBoundsTrait

Description

[StaticTemplate]
interface Tinman.Terrain.Util.ISpatialBoundsTrait
<TCoords val>
<TBounds val>

Type trait for structures that provide the semantic of spatial tree node bounds.

Public / Methods

Bounds​Child


[Pure]
public method BoundsChild → (3)

nodeCoords in : TCoords

Minimum coordinates of tree node.

nodeSize in : float64

The child node size.

childIdx in : int32

The child index.

returns → TBounds

The child node bounds.

Computes the bounds of a child node of the given tree node.

Bounds​Contain


[Pure]
public method BoundsContain → (2)

outer in : TBounds

The outer bounds.

inner in : TBounds

The inner bounds.

returns → bool

true if outer in contains inner in,
false if not.

Checks if the given outer bounds contain the given inner bounds.

Bounds​Grow​By​Two


[Pure]
public method BoundsGrowByTwo → (1)

bounds in : TBounds

The bounds to grow.

returns → TBounds

The grown bounds.

Grows the given bounds by the factor of two.

Bounds​Grow​To


[Pure]
public method BoundsGrowTo → (2)

bounds in : TBounds

The bounds to grow.

other in : TBounds

The other bounds.

returns → TBounds

The grown bounds.

Grows the given bounds so that it contains other in.

Bounds​Min


[Pure]
public method BoundsMin → (1)

bounds in : TBounds

The bounds.

returns → TCoords

The minimum coordinates.

Returns the minimum coordinates of the given bounds.

Bounds​Size


[Pure]
public method BoundsSize → (1)

bounds in : TBounds

The bounds.

returns → float64

The edge length.

Returns the edge length of the given bounds.

Public / Attributes

Bounds​Initial


public attribute BoundsInitial → (get)

value : TBounds

The initial bounds value.

Returns the initial bounds to use for subsequent calls to BoundsGrowTo.