mirror of
https://github.com/PaddiM8/kalker.git
synced 2025-06-23 19:21:26 +02:00
Fixed angle unit conversion.
This commit is contained in:
parent
93321c3dac
commit
e30fdf9cc1
@ -119,12 +119,10 @@ fn eval_unit_expr(context: &mut Context, expr: &Expr, kind: &TokenKind) -> Resul
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*match unit {
|
match unit {
|
||||||
Unit::Degrees => Ok(x?.to_radians()),
|
Unit::Degrees => Ok(prelude::special_funcs::to_radians(x?)),
|
||||||
Unit::Radians => Ok(x?.to_degrees()),
|
Unit::Radians => Ok(prelude::special_funcs::to_degrees(x?)),
|
||||||
}*/
|
}
|
||||||
|
|
||||||
x
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn eval_var_expr(context: &mut Context, identifier: &str) -> Result<Float, String> {
|
fn eval_var_expr(context: &mut Context, identifier: &str) -> Result<Float, String> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user