pub struct EllipticalCylinder {
pub frame: Frame3,
pub semi_axis_x: Scalar,
pub semi_axis_y: Scalar,
}Expand description
Infinite elliptical cylinder.
Distinct from Cylinder rather than a special case of it: a circular
cylinder’s outward normal is its radial direction, and for an ellipse that
is only true at the four axis points – elsewhere the two disagree by up to
53 degrees for a 3:1 ellipse. Anything that assumes radial normals is wrong
here, so the type is separate and forces the question.
Fields§
§frame: Frame3Local frame; z is the axis, x and y the semi-axis directions.
semi_axis_x: ScalarSemi-axis along local x.
semi_axis_y: ScalarSemi-axis along local y.
Trait Implementations§
Source§impl Clone for EllipticalCylinder
impl Clone for EllipticalCylinder
Source§fn clone(&self) -> EllipticalCylinder
fn clone(&self) -> EllipticalCylinder
Returns a copy 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 EllipticalCylinder
impl Debug for EllipticalCylinder
Source§impl PartialEq for EllipticalCylinder
impl PartialEq for EllipticalCylinder
impl Copy for EllipticalCylinder
impl StructuralPartialEq for EllipticalCylinder
Auto Trait Implementations§
impl Freeze for EllipticalCylinder
impl RefUnwindSafe for EllipticalCylinder
impl Send for EllipticalCylinder
impl Sync for EllipticalCylinder
impl Unpin for EllipticalCylinder
impl UnwindSafe for EllipticalCylinder
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