Struct kittycad_modeling_cmds::shared::LinearTransform
source · pub struct LinearTransform {
pub translate: Point3d<LengthUnit>,
pub scale: Point3d<LengthUnit>,
pub replicate: bool,
}Expand description
Ways to transform each solid being replicated in a repeating pattern.
Fields§
§translate: Point3d<LengthUnit>Translate the replica this far along each dimension. Defaults to zero vector (i.e. same position as the original).
scale: Point3d<LengthUnit>Scale the replica’s size along each axis. Defaults to (1, 1, 1) (i.e. the same size as the original).
replicate: boolWhether to replicate the original solid in this instance.
Trait Implementations§
source§impl Clone for LinearTransform
impl Clone for LinearTransform
source§fn clone(&self) -> LinearTransform
fn clone(&self) -> LinearTransform
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 LinearTransform
impl Debug for LinearTransform
source§impl Default for LinearTransform
impl Default for LinearTransform
source§fn default() -> LinearTransform
fn default() -> LinearTransform
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LinearTransform
impl<'de> Deserialize<'de> for LinearTransform
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 JsonSchema for LinearTransform
impl JsonSchema for LinearTransform
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for LinearTransform
impl RefUnwindSafe for LinearTransform
impl Send for LinearTransform
impl Sync for LinearTransform
impl Unpin for LinearTransform
impl UnwindSafe for LinearTransform
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> 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<'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