Lines Matching refs:y
29 float y; member
32 x(0.0f), y(0.0f) { in Vector2()
36 x(px), y(py) { in Vector2()
40 return sqrt(x * x + y * y); in length()
45 y += v.y;
50 y -= v.y;
55 y += v;
60 y -= v;
65 y /= s;
70 y *= s;
74 return Vector2(x + v.x, y + v.y);
78 return Vector2(x - v.x, y - v.y);
82 return Vector2(x / s, y / s);
86 return Vector2(x * s, y * s);
92 y *= s; in normalize()
96 Vector2 v(x, y); in copyNormalized()
102 return x * v.x + y * v.y; in dot()
106 ALOGD("Vector2[%.2f, %.2f]", x, y); in dump()