Game Development Community

VectorF and Point3F?

by Daniel Buckmaster · in General Discussion · 06/10/2010 (6:44 pm) · 2 replies

Is there any appreciable differences between these classes (in TGE source, and presumably other engine versions)? Any reason for both of them to exist?

EDIT - I just realised VectorF is Point3F. Again, why?

About the author

Studying mechatronic engineering and computer science at the University of Sydney. Game development is probably my most time-consuming hobby!


#1
06/11/2010 (8:06 am)
Why not call it 3-float-tuple, or better yet, make a template class called n-tuple, and then typedef NTuple<3,F32> Point3F; Hang on *takes the OO gnome out-round-back and shoots it*

To indicate intended usage. It exists purely for readability of code, and no other reason.