The Plane implements a plane represented by a normal and a distance.
The class follows the 'copy-on-write' pattern, which means that every operation returns a copy of the plane with updates values.
It also implies that the values of the plane cannot be directly modified.
The concept of immutability improves sharing of objects as all types in TypeScript are assigned
by identity, instead of by-value (e.g. a copy) as in other programming languages like C.
Distance to the plane. Will be positive if the point is on the positive side of the plane, negative if on the
negative side of the plane, or zero if the point is on the plane.
The Plane implements a plane represented by a normal and a distance. The class follows the 'copy-on-write' pattern, which means that every operation returns a copy of the plane with updates values. It also implies that the values of the plane cannot be directly modified.
The concept of immutability improves sharing of objects as all types in TypeScript are assigned by identity, instead of by-value (e.g. a copy) as in other programming languages like C.