Struct bismuth::cube::Cursor
[−]
[src]
pub struct Cursor { /* fields omitted */ }
A contiguous selection of cubes in a tree.
A Cursor
is essentially a bounding box with an associated width
(granularity) used to isolate cubes in a tree.
Methods
impl Cursor
[src]
fn at_point(point: &UPoint3, width: LogWidth) -> Self
fn at_point_with_span(point: &UPoint3, width: LogWidth, span: &UVector3) -> Self
fn from_point_to_point(start: &UPoint3, end: &UPoint3, width: LogWidth) -> Self
fn at_cube<C>(cube: &C) -> Self where
C: Spatial,
C: Spatial,
fn at_cube_with_span<C>(cube: &C, span: &UVector3) -> Self where
C: Spatial,
C: Spatial,
fn from_cube_to_cube<S, E>(start: &S, end: &E) -> Self where
S: Spatial,
E: Spatial,
S: Spatial,
E: Spatial,
fn origin(&self) -> &UPoint3
Gets the origin of the Cursor
.
fn width(&self) -> LogWidth
Gets the width associated with the Cursor
, which is the width of the
cubes that it selects.
fn span(&self) -> &UVector3
Gets the span of the Cursor
from its origin. This is based on the
width of the Cursor
, and each component essentially selects a number
of cubes in the positive direction along that axis. A span of zero means
that only one cube is selected by the Cursor
.
fn extent(&self) -> UVector3
Gets the extent of the Cursor
from its origin.
fn aabb(&self) -> AABB
Gets the AABB
of the Cursor
.