Lines Matching refs:P
39 Point operator+(const Point &P, const Vector &v) in operator +() argument
41 return Point(P.x + v.x, P.y + v.y, P.z + v.z); in operator +()
44 Point operator-(const Point &P, const Vector &v) in operator -() argument
46 return Point(P.x - v.x, P.y - v.y, P.z - v.z); in operator -()
49 Vector operator-(const Point &P, const Point &Q) in operator -() argument
51 return Vector(P.x - Q.x, P.y - Q.y, P.z - Q.z); in operator -()
54 Point operator*(const Matrix &M, const Point &P) in operator *() argument
56 return Point(M(1, 1) * P.x + M(1, 2) * P.y + M(1, 3) * P.z + M(1, 4), in operator *()
57 M(2, 1) * P.x + M(2, 2) * P.y + M(2, 3) * P.z + M(2, 4), in operator *()
58 M(3, 1) * P.x + M(3, 2) * P.y + M(3, 3) * P.z + M(3, 4)); in operator *()
61 Point operator*(const Point &P, const Matrix &M) in operator *() argument
63 return Point(P.x * M(1, 1) + P.y * M(2, 1) + P.z * M(3, 1), in operator *()
64 P.x * M(1, 2) + P.y * M(2, 2) + P.z * M(3, 2), in operator *()
65 P.x * M(1, 3) + P.y * M(2, 3) + P.z * M(3, 3)); in operator *()
68 Point &operator*=(Point &P, const Matrix &M) in operator *=() argument
70 return P = P * M; in operator *=()
73 float Point::d(const Point &P) const in d()
75 return Vector::N(*this - P); in d()
78 float Point::d2(const Point &P) const in d2()
80 return Vector::N2(*this - P); in d2()
83 float Point::d(const Point &P, const Point &Q) in d() argument
85 return Vector::N(P - Q); in d()
88 float Point::d2(const Point &P, const Point &Q) in d2() argument
90 return Vector::N2(P - Q); in d2()