I agree with the idea of encapsulating all 3D transformation routines inside the same class, which would also hold the coordinates of a single point. I am only thinking how the compiler would react when declaring an array of such objects, i.e.
Point P[100];
I know that it would only store the data, while there wouldn't be any copies of the functions inside the class, but is it really necessary to have these transformation functions linked to each point, or could they be declared outside the class ? This way they could be made into separate components on the website and may be downloaded separately. They could live in a category called "transformations" or something similar. Please let me know your opinion on this.
Login