Type Definition bvh::Point3[][src]

type Point3 = Vec3;

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

Trait Implementations

impl Bounded for Point3[src]

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));

impl Index<Axis> for Point3[src]

Make Point3 indexable by Axis.

type Output = f32

The returned type after indexing.

impl IndexMut<Axis> for Point3[src]

Make Point3 mutably accessible by Axis.