Lines Matching refs:x
32 float x; member
36 return x * x + y * y; in lengthSquared()
40 return sqrt(x * x + y * y); in length()
44 x += v.x;
49 x -= v.x;
54 x += v;
59 x -= v;
64 x /= s;
69 x *= 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};
91 x *= s; in normalize()
96 Vector2 v = {x, y}; in copyNormalized()
102 return x * v.x + y * v.y; in dot()
106 return x * v.y - y * v.x; in cross()
110 ALOGD("Vector2[%.2f, %.2f]", x, y); in dump()
117 float x;
122 return (Vector3){x + v.x, y + v.y, z + v.z};
126 return (Vector3){x - v.x, y - v.y, z - v.z};
130 return (Vector3){x / s, y / s, z / s};
134 return (Vector3){x * s, y * s, z * s};
139 ALOGD("%s[%.2f, %.2f, %.2f]", label, x, y, z);