pub struct RotationBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> RotationBuilder<S>
impl<S: State> RotationBuilder<S>
Sourcepub fn build(self) -> Rotationwhere
S: IsComplete,
pub fn build(self) -> Rotationwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn axis(self, value: Point3d<f64>) -> RotationBuilder<SetAxis<S>>where
S::Axis: IsUnset,
pub fn axis(self, value: Point3d<f64>) -> RotationBuilder<SetAxis<S>>where
S::Axis: IsUnset,
Required.
Rotation axis. Defaults to (0, 0, 1) (i.e. the Z axis).
Sourcepub fn angle(self, value: Angle) -> RotationBuilder<SetAngle<S>>where
S::Angle: IsUnset,
pub fn angle(self, value: Angle) -> RotationBuilder<SetAngle<S>>where
S::Angle: IsUnset,
Required.
Rotate this far about the rotation axis. Defaults to zero (i.e. no rotation).
Sourcepub fn origin(self, value: OriginType) -> RotationBuilder<SetOrigin<S>>where
S::Origin: IsUnset,
pub fn origin(self, value: OriginType) -> RotationBuilder<SetOrigin<S>>where
S::Origin: IsUnset,
Required.
Origin of the rotation. If one isn’t provided, the object will rotate about its own bounding box center.
Auto Trait Implementations§
impl<S> Freeze for RotationBuilder<S>
impl<S> RefUnwindSafe for RotationBuilder<S>
impl<S> Send for RotationBuilder<S>
impl<S> Sync for RotationBuilder<S>
impl<S> Unpin for RotationBuilder<S>
impl<S> UnsafeUnpin for RotationBuilder<S>
impl<S> UnwindSafe for RotationBuilder<S>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more