Lines Matching refs:y
30 float y; member
33 return x * x + y * y; in lengthSquared()
37 return sqrt(x * x + y * y); in length()
42 y += v.y;
47 y -= v.y;
52 y += v;
57 y -= v;
62 y /= s;
67 y *= s;
71 return (Vector2){x + v.x, y + v.y};
75 return (Vector2){x - v.x, y - v.y};
79 return (Vector2){x / s, y / s};
83 return (Vector2){x * s, y * s};
89 y *= s; in normalize()
93 Vector2 v = {x, y}; in copyNormalized()
99 return x * v.x + y * v.y; in dot()
103 return x * v.y - y * v.x; in cross()
107 ALOGD("Vector2[%.2f, %.2f]", x, y); in dump()
115 float y; variable
119 return (Vector3){x + v.x, y + v.y, z + v.z};
123 return (Vector3){x - v.x, y - v.y, z - v.z};
127 return (Vector3){x / s, y / s, z / s};
131 return (Vector3){x * s, y * s, z * s};
136 ALOGD("Vector3[%.2f, %.2f, %.2f]", x, y, z); in dump()