Lines Matching full:degrees
43 * __fixp_sin32() returns the sin of an angle in degrees
45 * @degrees: angle, in degrees, from 0 to 360.
49 static inline s32 __fixp_sin32(int degrees) in __fixp_sin32() argument
54 if (degrees > 180) { in __fixp_sin32()
56 degrees -= 180; in __fixp_sin32()
58 if (degrees > 90) in __fixp_sin32()
59 degrees = 180 - degrees; in __fixp_sin32()
61 ret = sin_table[degrees]; in __fixp_sin32()
67 * fixp_sin32() returns the sin of an angle in degrees
69 * @degrees: angle, in degrees. The angle can be positive or negative
73 static inline s32 fixp_sin32(int degrees) in fixp_sin32() argument
75 degrees = (degrees % 360 + 360) % 360; in fixp_sin32()
77 return __fixp_sin32(degrees); in fixp_sin32()
80 /* cos(x) = sin(x + 90 degrees) */
115 int degrees; in fixp_sin32_rad() local
124 degrees = (radians * 360) / twopi; in fixp_sin32_rad()
125 tmp = radians - (degrees * twopi) / 360; in fixp_sin32_rad()
127 degrees = (degrees % 360 + 360) % 360; in fixp_sin32_rad()
128 v1 = __fixp_sin32(degrees); in fixp_sin32_rad()
130 v2 = fixp_sin32(degrees + 1); in fixp_sin32_rad()