Right now this is my setup:
I have these classes
Both Point classes and both Vector are independent. Ray2 contains a Point2 and a Vector2 object, and Ray3 contains a Point3 and a Vector3 object.
I have two questions.
1) Should I somehow just have a Point class that has a way to make a Point2 and a Point3 (and same for the Vector classes)
2) As I mentioned, the Ray classes just contain a Point and a Vector of the same dimension as the ray. Should this be a separate class? or again somehow derived from one of the other ones?
I have a very basic understanding of this idea and of virtual classes- if you have a class "animal" it doesn't make sense to give it a name, you first have to make a subclass "dog" before you can name it, but I've never implemented either of these ideas so I'm not sure when to apply them.
Any light you can shed will be much appreciated!