pub struct Pyramid {
pub apex: Vec3,
pub axis: Vec3,
pub x_axis: Vec3,
pub at: f64,
pub section: Vec<[f64; 2]>,
pub from: f64,
pub to: f64,
}Expand description
A frustum of a pyramid: the convex polygon section (corners in order, in
the plane square to axis at distance at from apex, coordinates along
x_axis and axis × x_axis from the axis’s point there), the pyramid
from apex over it, cut off by the planes square to axis at distances
from and to from the apex.
Fields§
§apex: Vec3§axis: Vec3§x_axis: Vec3§at: f64§section: Vec<[f64; 2]>§from: f64§to: f64Trait Implementations§
Auto Trait Implementations§
impl Forget for Pyramid
impl Freeze for Pyramid
impl Move for Pyramid
impl RefUnwindSafe for Pyramid
impl Send for Pyramidwhere
RawVecInner: Send,
impl Sync for Pyramidwhere
RawVecInner: Sync,
impl Unpin for Pyramid
impl UnsafeUnpin for Pyramid
impl UnwindSafe for Pyramidwhere
RawVecInner: UnwindSafe,
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