Type Definition bvh::Point3[][src]

pub type Point3 = Vec3;
Expand description

Point math type used by this crate. Type alias for glam::Vec3.

Trait Implementations

Implementation of Bounded for Point3.

Examples

use bvh::aabb::{AABB, Bounded};
use bvh::Point3;

let point = Point3::new(3.0,4.0,5.0);

let aabb = point.aabb();
assert!(aabb.contains(&point));

Returns the geometric bounds of this object in the form of an AABB. Read more

Make Point3 indexable by Axis.

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

Make Point3 mutably accessible by Axis.

Performs the mutable indexing (container[index]) operation. Read more