INNER CODE UNIT · C#
offsetX
Blotch3D/Blotch3D · src/BlGeometry.cs:429
var offsetX = (double)x / (numX-1);
var angle = offsetX * Math.PI * 2;
pos.X = (float)(Math.Sin(angle) * radius);
pos.Y = (float)(-Math.Cos(angle) * radius);
pos.Z -= .5f;
pos = Vector3.Transform(pos, matrixy);
var i = x + y * numX;
grid[i].TextureCoordinate.X = (float)offsetX;
grid[i].TextureCoordinate.Y = (float)y/numY;
grid[i].Position = pos;
}