pub struct Ring {
pub plane: Plane4,
pub center: Vec3,
pub u: Vec3,
pub v: Vec3,
pub radius: f32,
pub pole_overlap: f32,
pub phase: f32,
}Fields§
§plane: Plane4§center: Vec3§u: Vec3§v: Vec3§radius: f32§pole_overlap: f32§phase: f32Implementations§
Source§impl Ring
impl Ring
pub fn normal(&self) -> Vec3
pub fn point(&self, chi: f32) -> Vec3
pub fn ring_angle(&self, world: Vec3) -> f32
pub fn arc_angle(&self, chi: f32) -> f32
pub fn ray_hit(&self, ray_origin: Vec3, ray_direction: Vec3) -> Option<Vec3>
pub fn drag_angle(&self, grab: Vec3, cursor: Vec3) -> f32
pub fn drag_rotor(&self, grab: Vec3, cursor: Vec3) -> Rotor4
Trait Implementations§
impl Copy for Ring
impl StructuralPartialEq for Ring
Auto Trait Implementations§
impl Freeze for Ring
impl RefUnwindSafe for Ring
impl Send for Ring
impl Sync for Ring
impl Unpin for Ring
impl UnsafeUnpin for Ring
impl UnwindSafe for Ring
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