Lines Matching refs:real2
24 CUDA_HOST_DEVICE real2 operator+(const real2& a, real b) { in operator +()
25 return real2(a.x + b, a.y + b); in operator +()
27 CUDA_HOST_DEVICE real2 operator-(const real2& a, real b) { in operator -()
28 return real2(a.x - b, a.y - b); in operator -()
30 CUDA_HOST_DEVICE real2 operator*(const real2& a, real b) { in operator *()
31 return real2(a.x * b, a.y * b); in operator *()
33 CUDA_HOST_DEVICE real2 operator/(const real2& a, real b) { in operator /()
34 return real2(a.x / b, a.y / b); in operator /()
37 CUDA_HOST_DEVICE real2 operator+(const real2& a, const real2& b) { in operator +()
38 return real2(a.x + b.x, a.y + b.y); in operator +()
40 CUDA_HOST_DEVICE real2 operator-(const real2& a, const real2& b) { in operator -()
41 return real2(a.x - b.x, a.y - b.y); in operator -()
43 CUDA_HOST_DEVICE real2 operator*(const real2& a, const real2& b) { in operator *()
44 return real2(a.x * b.x, a.y * b.y); in operator *()
46 CUDA_HOST_DEVICE real2 operator/(const real2& a, const real2& b) { in operator /()
47 return real2(a.x / b.x, a.y / b.y); in operator /()
49 CUDA_HOST_DEVICE real2 operator-(const real2& a) { in operator -()
50 return real2(-a.x, -a.y); in operator -()
53 CUDA_HOST_DEVICE OPERATOR_EQUALS_IMPL(*, real, real2);
54 CUDA_HOST_DEVICE OPERATOR_EQUALS_IMPL(/, real, real2);
55 CUDA_HOST_DEVICE OPERATOR_EQUALS_IMPL(+, real, real2);
56 CUDA_HOST_DEVICE OPERATOR_EQUALS_IMPL(-, real, real2);
58 CUDA_HOST_DEVICE OPERATOR_EQUALS_IMPL(*, real2, real2);
59 CUDA_HOST_DEVICE OPERATOR_EQUALS_IMPL(/, real2, real2);
60 CUDA_HOST_DEVICE OPERATOR_EQUALS_IMPL(+, real2, real2);
61 CUDA_HOST_DEVICE OPERATOR_EQUALS_IMPL(-, real2, real2);
63 CUDA_HOST_DEVICE real2 operator*(real lhs, const real2& rhs) { in operator *()
64 real2 r(rhs); in operator *()
69 CUDA_HOST_DEVICE bool operator==(const real2& lhs, const real2& rhs) { in operator ==()
73 CUDA_HOST_DEVICE real2 Max(const real2& a, const real2& b) { in Max()
74 return real2(Max(a.x, b.x), Max(a.y, b.y)); in Max()
77 CUDA_HOST_DEVICE real2 Min(const real2& a, const real2& b) { in Min()
78 return real2(Min(a.x, b.x), Min(a.y, b.y)); in Min()
81 CUDA_HOST_DEVICE real Dot(const real2& v1, const real2& v2) { in Dot()
85 CUDA_HOST_DEVICE real Dot(const real2& v) { in Dot()
89 CUDA_HOST_DEVICE real Length2(const real2& v1) { in Length2()
92 CUDA_HOST_DEVICE real2 Normalize(const real2& v1) { in Normalize()
95 CUDA_HOST_DEVICE void Print(real2 v, const char* name) { in Print()