pub struct Mobject2DArcDescriptor {
pub radius: f32,
pub start_rad: f32,
pub end_rad: f32,
pub clockwise: bool,
pub segment_num: u32,
pub center: [f32; 3],
pub x_axis: UnitVector3<f32>,
pub y_axis: UnitVector3<f32>,
}Expand description
Describes an arc.
The arc is defined on a plane spanned by x_axis and y_axis.
The arc spans from start_rad to end_rad radians,
with direction controlled by clockwise.
The path is discretized into segment_num line segments.
Fields§
§radius: f32§start_rad: f32§end_rad: f32§clockwise: bool§segment_num: u32§center: [f32; 3]§x_axis: UnitVector3<f32>Local X-axis of the arc’s plane, defining 0 radians direction.
y_axis: UnitVector3<f32>Local Y-axis of the arc’s plane.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mobject2DArcDescriptor
impl RefUnwindSafe for Mobject2DArcDescriptor
impl Send for Mobject2DArcDescriptor
impl Sync for Mobject2DArcDescriptor
impl Unpin for Mobject2DArcDescriptor
impl UnsafeUnpin for Mobject2DArcDescriptor
impl UnwindSafe for Mobject2DArcDescriptor
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
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.