Struct geometry::transform::TransformationBuilder
source · pub struct TransformationBuilder { /* private fields */ }
Expand description
A builder for creating transformations from translations and Orientation
s.
Implementations§
source§impl TransformationBuilder
impl TransformationBuilder
sourcepub fn point(&mut self, point: impl Into<Point>) -> &mut Self
pub fn point(&mut self, point: impl Into<Point>) -> &mut Self
Specifies the x-y translation encoded by the transformation.
sourcepub fn orientation(&mut self, o: impl Into<Orientation>) -> &mut Self
pub fn orientation(&mut self, o: impl Into<Orientation>) -> &mut Self
Specifies the Orientation
applied by this transformation.
sourcepub fn angle(&mut self, angle: f64) -> &mut Self
pub fn angle(&mut self, angle: f64) -> &mut Self
Specifies the angle of rotation encoded by this transformation.
sourcepub fn reflect_vert(&mut self, reflect_vert: bool) -> &mut Self
pub fn reflect_vert(&mut self, reflect_vert: bool) -> &mut Self
Specifies whether the transformation results in a vertical reflection.
sourcepub fn build(&mut self) -> Transformation
pub fn build(&mut self) -> Transformation
Builds a Transformation
from the specified parameters.
Trait Implementations§
source§impl Clone for TransformationBuilder
impl Clone for TransformationBuilder
source§fn clone(&self) -> TransformationBuilder
fn clone(&self) -> TransformationBuilder
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 TransformationBuilder
impl Debug for TransformationBuilder
source§impl Default for TransformationBuilder
impl Default for TransformationBuilder
source§fn default() -> TransformationBuilder
fn default() -> TransformationBuilder
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TransformationBuilder
impl<'de> Deserialize<'de> for TransformationBuilder
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for TransformationBuilder
impl PartialEq for TransformationBuilder
source§fn eq(&self, other: &TransformationBuilder) -> bool
fn eq(&self, other: &TransformationBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TransformationBuilder
impl Serialize for TransformationBuilder
impl StructuralPartialEq for TransformationBuilder
Auto Trait Implementations§
impl RefUnwindSafe for TransformationBuilder
impl Send for TransformationBuilder
impl Sync for TransformationBuilder
impl Unpin for TransformationBuilder
impl UnwindSafe for TransformationBuilder
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