pub struct Parabola { /* private fields */ }Expand description
A parabola in space, opening along its frame’s x axis.
Implementations§
Source§impl Parabola
impl Parabola
Sourcepub fn new(frame: Frame, focal: f64, tol: Tolerances) -> OgeomResult<Self>
pub fn new(frame: Frame, focal: f64, tol: Tolerances) -> OgeomResult<Self>
A parabola with the given focal length in the xy plane of frame.
The apex is at the frame origin and the curve opens along +x; the
focus sits at distance focal from the apex along +x.
§Errors
OgeomError::Construction if focal is
not finite and positive. A zero focal length degenerates to a ray.
Sourcepub const fn eccentricity(&self) -> f64
pub const fn eccentricity(&self) -> f64
The eccentricity, which is 1 for every parabola.
Sourcepub fn transformed(&self, t: &Transform, tol: Tolerances) -> OgeomResult<Self>
pub fn transformed(&self, t: &Transform, tol: Tolerances) -> OgeomResult<Self>
Trait Implementations§
impl Copy for Parabola
impl StructuralPartialEq for Parabola
Auto Trait Implementations§
impl Freeze for Parabola
impl RefUnwindSafe for Parabola
impl Send for Parabola
impl Sync for Parabola
impl Unpin for Parabola
impl UnsafeUnpin for Parabola
impl UnwindSafe for Parabola
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.