pub struct LengthRatio {
pub group: Group,
pub line_a: EntityHandle<LineSegment>,
pub line_b: EntityHandle<LineSegment>,
pub ratio: f64,
pub workplane: Option<EntityHandle<Workplane>>,
}Expand description
The length of line_a is ratio times longer than line_b.
Fields§
§group: GroupThe group that LengthRatio belongs to.
line_a: EntityHandle<LineSegment>§line_b: EntityHandle<LineSegment>§ratio: f64§workplane: Option<EntityHandle<Workplane>>If provided, constraint applies when projected onto this workplane.
Implementations§
Source§impl LengthRatio
impl LengthRatio
Sourcepub fn new(
group: Group,
line_a: EntityHandle<LineSegment>,
line_b: EntityHandle<LineSegment>,
ratio: f64,
workplane: Option<EntityHandle<Workplane>>,
) -> Self
pub fn new( group: Group, line_a: EntityHandle<LineSegment>, line_b: EntityHandle<LineSegment>, ratio: f64, workplane: Option<EntityHandle<Workplane>>, ) -> Self
Create a new LengthRatio instance.
Trait Implementations§
Source§impl AsConstraintData for LengthRatio
impl AsConstraintData for LengthRatio
Source§impl Clone for LengthRatio
impl Clone for LengthRatio
Source§fn clone(&self) -> LengthRatio
fn clone(&self) -> LengthRatio
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 LengthRatio
impl Debug for LengthRatio
Source§impl<'de> Deserialize<'de> for LengthRatio
impl<'de> Deserialize<'de> for LengthRatio
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 LengthRatio
impl PartialEq for LengthRatio
Source§impl Serialize for LengthRatio
impl Serialize for LengthRatio
impl Copy for LengthRatio
impl StructuralPartialEq for LengthRatio
Auto Trait Implementations§
impl Freeze for LengthRatio
impl RefUnwindSafe for LengthRatio
impl Send for LengthRatio
impl Sync for LengthRatio
impl Unpin for LengthRatio
impl UnwindSafe for LengthRatio
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