Lines Matching refs:y
47 float atan2(float y, float x);
126 static inline void scaleR(Matrix* m, float x, float y) in scaleR() argument
132 if (y != 1.0f) { in scaleR()
133 m->e22 *= y; in scaleR()
134 m->e12 *= y; in scaleR()
139 static inline void translate(Matrix* m, float x, float y) in translate() argument
142 m->e23 += y; in translate()
146 static inline void translateR(Matrix* m, float x, float y) in translateR() argument
148 if (x == 0.0f && y == 0.0f) return; in translateR()
149 m->e13 += (x * m->e11 + y * m->e12); in translateR()
150 m->e23 += (x * m->e21 + y * m->e22); in translateR()
182 return lhs.x * rhs.y - rhs.x * lhs.y; in cross()
188 return tvg::zero(p.x) && tvg::zero(p.y); in zero()
195 auto y = b->y - a->y; in length() local
198 if (y < 0) y = -y; in length()
200 return (x > y) ? (x + 0.375f * y) : (y + 0.375f * x); in length()
206 return sqrtf(a.x * a.x + a.y * a.y); in length()
212 return tvg::equal(lhs.x, rhs.x) && tvg::equal(lhs.y, rhs.y);
224 return {lhs.x - rhs.x, lhs.y - rhs.y};
230 return {lhs.x + rhs.x, lhs.y + rhs.y};
236 return {lhs.x * rhs, lhs.y * rhs};
242 return {lhs * rhs.x, lhs * rhs.y};
248 return {lhs.x / rhs, lhs.y / rhs};
254 TVGLOG("COMMON", "Point: [%f %f]", pt.x, pt.y); in log()