Jeff Epler пишет:
> this increases timings a little bit (including in the unrotated case), but
> correct is much better than fast in this case
> ---
> src/emc/rs274ngc/gcodemodule.cc | 47 ++++++++++++++++++++++----------------
> 1 files changed, 27 insertions(+), 20 deletions(-)
>
> diff --git a/src/emc/rs274ngc/gcodemodule.cc b/src/emc/rs274ngc/gcodemodule.cc
> index 051bbe1..7a4a7d7 100644
> --- a/src/emc/rs274ngc/gcodemodule.cc
> +++ b/src/emc/rs274ngc/gcodemodule.cc
> @@ -846,6 +846,12 @@ static bool get_attr(PyObject *o, const char *attr_name,
> const char *fmt, ...) {
> return result;
> }
>
> +static void unrotate(double &x, double &y, double c, double s) {
> + double tx = x * c + y * s;
> + y = -x * s + y * c;
> + x = tx;
> +}
>
You don't really need unrotate -- you can do rotate (x,y, cos, -sin).
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers