Made Geometry2D and Geometry3D data types structs instead of classes.