added Mirror function
This commit is contained in:
parent
7bb5f1d041
commit
b400ca4b75
|
@ -117,6 +117,13 @@ public:
|
||||||
return p - _dir * k;
|
return p - _dir * k;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///Mirror the point wrt the plane
|
||||||
|
PointType Mirror(const PointType &p) const {
|
||||||
|
PointType mirr=Projection(p);
|
||||||
|
mirr+=mirr-p;
|
||||||
|
return mirr;
|
||||||
|
}
|
||||||
|
|
||||||
/// Function to normalize direction
|
/// Function to normalize direction
|
||||||
void Normalize() {
|
void Normalize() {
|
||||||
_dir.Normalize();
|
_dir.Normalize();
|
||||||
|
|
Loading…
Reference in New Issue