void function ( ) { Vector2 loc0 = new Vector2 ( 2.0 , 1.0 ) ; loc0 . rotate ( Math . toRadians ( 90 ) ) ; TestCase . assertEquals ( - 1.000 , loc0 . x , 1.0e-3 ) ; TestCase . assertEquals ( 2.000 , loc0 . y , 1.0e-3 ) ; loc0 . rotate ( Math . toRadians ( 60 ) , 0.0 , 1.0 ) ; TestCase . assertEquals ( - 1.366 , loc0 . x , 1.0e-3 ) ; TestCase . assertEquals ( 0.634 , loc0 . y , 1.0e-3 ) ; }
tests the rotate methods . concode_field_sep PlaceHolder placeHolder concode_field_sep void add concode_elem_sep void set concode_elem_sep void distance concode_elem_sep void subtract concode_elem_sep void dot concode_elem_sep void cross concode_elem_sep void project concode_elem_sep void right concode_elem_sep void getAngleBetweenRange concode_elem_sep void distanceBugInVersions_1_1_0_to_3_1_7 concode_elem_sep void zero concode_elem_sep void tripleProduct concode_elem_sep void isOrthogonal concode_elem_sep void left concode_elem_sep void negate concode_elem_sep void equals concode_elem_sep void get concode_elem_sep void normalize concode_elem_sep void create concode_elem_sep void isZero concode_elem_sep void copy concode_elem_sep void to concode_elem_sep void multiply