Aardvark.Base


VecBox<'T>

A companion bounding box data structure to the generic vector structure that holds a minimum and a maximum vector that is computed as the componentwise minimum/maximum of a sequence of vectors. This works on all vectors of comparable components.

Constructors

ConstructorDescription
new(min, max)
Signature: (min:Vec<'T> * max:Vec<'T>) -> unit
new(vecs)
Signature: vecs:IEnumerable<Vec<'T>> -> unit

Instance members

Instance memberDescription
ComputeCorners()
Signature: unit -> VecArray<'T>

Computes the corners of the box and returns them in an array. The order of the corners is determined by their index which is constructed as in the method .

Contains(value)
Signature: value:Vec<'T> -> bool
Modifiers: abstract
Contains(box)
Signature: box:VecBox<'T> -> bool
Modifiers: abstract
Corner(ci)
Signature: ci:int64 -> Vec<'T>

Return the corner of the box with the given index. The corner index is constructed in such a way, that bit 0 enumerates the 0th coordinate (0 ... min, 1 ... max), bit 1 enumerates the 1st coordinate, aso.

ExtendBy(value)
Signature: value:Vec<'T> -> unit
Modifiers: abstract
ExtendBy(box)
Signature: box:VecBox<'T> -> unit
Modifiers: abstract
ExtendedBy(value)
Signature: value:Vec<'T> -> VecBox<'T>
Modifiers: abstract
ExtendedBy(box)
Signature: box:VecBox<'T> -> VecBox<'T>
Modifiers: abstract
Intersects(range)
Signature: range:VecBox<'T> -> bool
Modifiers: abstract
IsEmpty
Signature: bool
Modifiers: abstract
IsInvalid
Signature: bool
Modifiers: abstract
IsNonEmpty
Signature: bool
Modifiers: abstract
IsValid
Signature: bool
Modifiers: abstract
Repair()
Signature: unit -> VecBox<'T>
Modifiers: abstract
Fork me on GitHub