|
@ -226,6 +226,8 @@ public: |
|
|
|
|
|
|
|
|
bool IsOnLine(const GPoint3& q); |
|
|
bool IsOnLine(const GPoint3& q); |
|
|
friend float dist(const GPoint3& q, const GLine& l); |
|
|
friend float dist(const GPoint3& q, const GLine& l); |
|
|
|
|
|
|
|
|
|
|
|
friend bool intersect_line_plane(GPoint3& p, const GLine& l, const GPlane& pi); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
class GPlane { |
|
|
class GPlane { |
|
@ -241,4 +243,8 @@ public: |
|
|
|
|
|
|
|
|
GPlane& operator =(const GPlane& rhs); |
|
|
GPlane& operator =(const GPlane& rhs); |
|
|
GVector3 GetNormal() const; |
|
|
GVector3 GetNormal() const; |
|
|
|
|
|
|
|
|
|
|
|
friend float dist(const GPlane& pi, const GPoint3& p); |
|
|
|
|
|
|
|
|
|
|
|
friend bool intersect_line_plane(GPoint3& p, const GLine& l, const GPlane& pi); |
|
|
}; |
|
|
}; |