I only recently started programing and after reading a little about vertices and polygons I was trying to figure out how rotations of vertices are calculated. I figure that if an object is composed of polygons, and polygons are composed of vertices then an object could be described as,
Moving the object in 3D space would be easy, just apply an offset to all of the members of polygons; but how would you re- orient the object?Code:struct strobject{ Struct strpolygon[var1]; // other relevant members } Struct strpolygon{ Struct strvert[3]; } struct strvert{ Float x; Float y; Float z;