pub struct Frame {
pub origin: Point3,
pub x: Vec3,
pub y: Vec3,
}Expand description
An orthonormal frame at a point on a path.
A sweep needs a full frame, not just a tangent: the profile’s x and y axes have to be carried along the path, and how they are carried is exactly what distinguishes the sweep families from each other.
Fields§
§origin: Point3Frame origin on the directrix.
x: Vec3Image of the profile’s +x.
y: Vec3Image of the profile’s +y.
Implementations§
Source§impl Frame
impl Frame
Sourcepub fn from_reference(
origin: Point3,
tangent: Vec3,
reference: Vec3,
) -> GeomResult<Self>
pub fn from_reference( origin: Point3, tangent: Vec3, reference: Vec3, ) -> GeomResult<Self>
Frame whose z is tangent and whose x is reference made
perpendicular to it.
Refuses a reference parallel to the tangent instead of silently picking a fallback axis: the caller supplied a direction that cannot orient the profile, and quietly substituting one rotates the section by an arbitrary angle.
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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