void Mesh::ScaleY(float s) { Vector c = ComputeCentroid(); Triangle *tri = tris; for(int i = 0; i < numTris; i++, tri++) { tri->ScaleYAboutPoint(s, c); } }
void Mesh::ScaleYAboutPoint(float s, Vector point) { Triangle *tri = tris; for(int i = 0; i < numTris; i++, tri++) { tri->ScaleYAboutPoint(s, point); } centroidChanged = true; }