Enum geo_aid::script::unroll::ScalarData
source · pub enum ScalarData {
Show 17 variants
Generic(Generic<Scalar>),
Entity(usize),
Number(f64),
DstLiteral(f64),
SetUnit(Expr<Scalar>, ComplexUnit),
PointPointDistance(Expr<Point>, Expr<Point>),
PointLineDistance(Expr<Point>, Expr<Line>),
Negate(Expr<Scalar>),
Add(Expr<Scalar>, Expr<Scalar>),
Subtract(Expr<Scalar>, Expr<Scalar>),
Multiply(Expr<Scalar>, Expr<Scalar>),
Divide(Expr<Scalar>, Expr<Scalar>),
ThreePointAngle(Expr<Point>, Expr<Point>, Expr<Point>),
ThreePointAngleDir(Expr<Point>, Expr<Point>, Expr<Point>),
TwoLineAngle(Expr<Line>, Expr<Line>),
Average(Vec<Expr<Scalar>>),
CircleRadius(Expr<Circle>),
}Variants§
Generic(Generic<Scalar>)
Entity(usize)
Number(f64)
DstLiteral(f64)
SetUnit(Expr<Scalar>, ComplexUnit)
PointPointDistance(Expr<Point>, Expr<Point>)
PointLineDistance(Expr<Point>, Expr<Line>)
Negate(Expr<Scalar>)
Add(Expr<Scalar>, Expr<Scalar>)
Subtract(Expr<Scalar>, Expr<Scalar>)
Multiply(Expr<Scalar>, Expr<Scalar>)
Divide(Expr<Scalar>, Expr<Scalar>)
ThreePointAngle(Expr<Point>, Expr<Point>, Expr<Point>)
ThreePointAngleDir(Expr<Point>, Expr<Point>, Expr<Point>)
TwoLineAngle(Expr<Line>, Expr<Line>)
Average(Vec<Expr<Scalar>>)
CircleRadius(Expr<Circle>)
Trait Implementations§
source§impl Clone for ScalarData
impl Clone for ScalarData
source§fn clone(&self) -> ScalarData
fn clone(&self) -> ScalarData
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 ScalarData
impl Debug for ScalarData
source§impl Definition for ScalarData
impl Definition for ScalarData
source§fn order(&self, context: &CompileContext) -> usize
fn order(&self, context: &CompileContext) -> usize
Get the complexity order (how much adjustment is done to this entity).
source§fn contains_entity(&self, entity: usize, context: &CompileContext) -> bool
fn contains_entity(&self, entity: usize, context: &CompileContext) -> bool
Check if the object contains an entity
Auto Trait Implementations§
impl !RefUnwindSafe for ScalarData
impl !Send for ScalarData
impl !Sync for ScalarData
impl Unpin for ScalarData
impl !UnwindSafe for ScalarData
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