pub struct Hypergimbal {
pub center: Vec3,
pub scale: f32,
}Fields§
§center: Vec3§scale: f32Implementations§
Source§impl Hypergimbal
impl Hypergimbal
Sourcepub fn project(&self, p: Vec4) -> Option<Vec3>
pub fn project(&self, p: Vec4) -> Option<Vec3>
None within f32 noise of POLE, where the image is unbounded.
Sourcepub fn rings(&self) -> [Ring; 6]
pub fn rings(&self) -> [Ring; 6]
All six rings, in Plane4::ALL order.
pub fn ring(&self, plane: Plane4) -> Ring
Sourcepub fn pick(
&self,
ray_origin: Vec3,
ray_direction: Vec3,
tolerance: f32,
) -> Option<Ring>
pub fn pick( &self, ray_origin: Vec3, ray_direction: Vec3, tolerance: f32, ) -> Option<Ring>
Nearest ring within tolerance of the plane hit; ties break by depth.
pub fn append_line_mesh(&self, style: &RingStyle, out: &mut LineMesh<3>)
Trait Implementations§
Source§impl Clone for Hypergimbal
impl Clone for Hypergimbal
Source§fn clone(&self) -> Hypergimbal
fn clone(&self) -> Hypergimbal
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Hypergimbal
impl Debug for Hypergimbal
Source§impl PartialEq for Hypergimbal
impl PartialEq for Hypergimbal
impl Copy for Hypergimbal
impl StructuralPartialEq for Hypergimbal
Auto Trait Implementations§
impl Freeze for Hypergimbal
impl RefUnwindSafe for Hypergimbal
impl Send for Hypergimbal
impl Sync for Hypergimbal
impl Unpin for Hypergimbal
impl UnsafeUnpin for Hypergimbal
impl UnwindSafe for Hypergimbal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more