Fix an issue with groups, and add Chapter 14 example!

This commit is contained in:
Godzil
2020-02-26 00:30:09 +00:00
parent aded6bb943
commit 5e4cfb84e6
7 changed files with 244 additions and 3 deletions

View File

@@ -61,7 +61,8 @@ public:
virtual BoundingBox getBounds();
virtual bool haveFiniteBounds() { return true; };
void updateTransform();
virtual void updateTransform();
Tuple worldToObject(Tuple point) { return this->inverseTransform * point; };
Tuple objectToWorld(Tuple point) { return this->transformMatrix * point; };
Tuple normalToWorld(Tuple normalVector);