forked from enlightenment/efl
embryo: fix inverse trigonometry functions typos.
Summary: Issue: when asin,acos,atan functions were called from edc, wrong values were returned Solution: fixed asin,acos,atan functions in embryo script. Test Plan: embryo script functions asin,acos,atan to be called from edc and return value to be verified. Reviewers: Hermet, prince.dubey, shilpasingh, raster, cedric Reviewed By: shilpasingh, cedric Subscribers: rajeshps, govi, cedric Differential Revision: https://phab.enlightenment.org/D2512 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
4db130a680
commit
1762a8c464
1
AUTHORS
1
AUTHORS
|
@ -227,6 +227,7 @@ Embryo
|
|||
The Rasterman (Carsten Haitzler) <raster@rasterman.com>
|
||||
Jérôme Pinot <ngc891@gmail.com>
|
||||
kumar Navneet <k.navneet@samsung.com>
|
||||
Deborshi Saha <deb.saha@samsung.com>
|
||||
|
||||
Eio
|
||||
---
|
||||
|
|
|
@ -338,7 +338,7 @@ _embryo_fp_asin(Embryo_Program *ep EINA_UNUSED, Embryo_Cell *params)
|
|||
|
||||
if (params[0] != (2 * sizeof(Embryo_Cell))) return 0;
|
||||
f = EMBRYO_CELL_TO_FLOAT(params[1]);
|
||||
f = sinf(f);
|
||||
f = asinf(f);
|
||||
f = _embryo_fp_degrees_to_radians(f, params[2]);
|
||||
return EMBRYO_FLOAT_TO_CELL(f);
|
||||
}
|
||||
|
@ -352,7 +352,7 @@ _embryo_fp_acos(Embryo_Program *ep EINA_UNUSED, Embryo_Cell *params)
|
|||
|
||||
if (params[0] != (2 * sizeof(Embryo_Cell))) return 0;
|
||||
f = EMBRYO_CELL_TO_FLOAT(params[1]);
|
||||
f = cosf(f);
|
||||
f = acosf(f);
|
||||
f = _embryo_fp_degrees_to_radians(f, params[2]);
|
||||
return EMBRYO_FLOAT_TO_CELL(f);
|
||||
}
|
||||
|
@ -366,7 +366,7 @@ _embryo_fp_atan(Embryo_Program *ep EINA_UNUSED, Embryo_Cell *params)
|
|||
|
||||
if (params[0] != (2 * sizeof(Embryo_Cell))) return 0;
|
||||
f = EMBRYO_CELL_TO_FLOAT(params[1]);
|
||||
f = tanf(f);
|
||||
f = atanf(f);
|
||||
f = _embryo_fp_degrees_to_radians(f, params[2]);
|
||||
return EMBRYO_FLOAT_TO_CELL(f);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue