Updated to use the new math classes.

This commit is contained in:
the_fiddler 2007-11-04 15:32:52 +00:00
parent 75cd2b0994
commit 70c5a90312

View file

@ -34,7 +34,7 @@ namespace Examples.Shapes
Vertices[i].Y = y_scale * (float)(System.Math.Sin(s) * System.Math.Sin(t));
Vertices[i].Z = z_scale * (float)System.Math.Cos(t);
//vertices[i] = vertices[i].Scale(x_scale, y_scale, z_scale);
Normals[i] = Vertices[i].Normalize();
Normals[i] = Vector3.Normalize(Vertices[i]);
++i;
}