Home | History | Annotate | Download | only in hwui

Lines Matching refs:Vector2

31 struct Vector2 {
43 void operator+=(const Vector2& v) {
48 void operator-=(const Vector2& v) {
73 Vector2 operator+(const Vector2& v) const {
74 return (Vector2){x + v.x, y + v.y};
77 Vector2 operator-(const Vector2& v) const {
78 return (Vector2){x - v.x, y - v.y};
81 Vector2 operator/(float s) const {
82 return (Vector2){x / s, y / s};
85 Vector2 operator*(float s) const {
86 return (Vector2){x * s, y * s};
95 Vector2 copyNormalized() const {
96 Vector2 v = {x, y};
101 float dot(const Vector2& v) const {
105 float cross(const Vector2& v) const {
110 ALOGD("Vector2[%.2f, %.2f]", x, y);
112 }; // class Vector2