Lines Matching full:degrees
42 * __fixp_sin32() returns the sin of an angle in degrees
44 * @degrees: angle, in degrees, from 0 to 360.
48 static inline s32 __fixp_sin32(int degrees) in __fixp_sin32() argument
53 if (degrees > 180) { in __fixp_sin32()
55 degrees -= 180; in __fixp_sin32()
57 if (degrees > 90) in __fixp_sin32()
58 degrees = 180 - degrees; in __fixp_sin32()
60 ret = sin_table[degrees]; in __fixp_sin32()
66 * fixp_sin32() returns the sin of an angle in degrees
68 * @degrees: angle, in degrees. The angle can be positive or negative
72 static inline s32 fixp_sin32(int degrees) in fixp_sin32() argument
74 degrees = (degrees % 360 + 360) % 360; in fixp_sin32()
76 return __fixp_sin32(degrees); in fixp_sin32()
79 /* cos(x) = sin(x + 90 degrees) */
114 int degrees; in fixp_sin32_rad() local
123 degrees = (radians * 360) / twopi; in fixp_sin32_rad()
124 tmp = radians - (degrees * twopi) / 360; in fixp_sin32_rad()
126 degrees = (degrees % 360 + 360) % 360; in fixp_sin32_rad()
127 v1 = __fixp_sin32(degrees); in fixp_sin32_rad()
129 v2 = fixp_sin32(degrees + 1); in fixp_sin32_rad()