pub struct Plane { /* private fields */ }
Implementations§
source§impl Plane
impl Plane
pub const WORLD_XY: Self = _
pub const WORLD_YZ: Self = _
pub const WORLD_XZ: Self = _
pub fn default() -> Self
pub const fn new(mat: Mat4) -> Self
sourcepub fn from_pvv_guess(p: Vec3, vi: Vec3, vj: Vec3) -> Self
pub fn from_pvv_guess(p: Vec3, vi: Vec3, vj: Vec3) -> Self
Create a plane from a center point and two axis. These axis do not need to be orthogonal or normalized
sourcepub fn from_pvv_exact(p: Vec3, i: Vec3, j: Vec3) -> Self
pub fn from_pvv_exact(p: Vec3, i: Vec3, j: Vec3) -> Self
Create a plane from a center point and two normalized, orthogonal axis
pub fn from_pts(a: Vec3, b: Vec3, c: Vec3) -> Self
sourcepub fn point_to_plane(&self, point: Vec3) -> Vec3
pub fn point_to_plane(&self, point: Vec3) -> Vec3
take a point defined in the world, and translate it to ‘plane space’
sourcepub fn point_to_world(&self, point: Vec3) -> Vec3
pub fn point_to_world(&self, point: Vec3) -> Vec3
take a point defined in the space of this plane, and transform it to world space