INNER CODE UNIT · C#

angle

Blotch3D/Blotch3D · src/BlGeometry.cs:430

					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;
				}
				matrixy = Matrix.Multiply(matrixy, m);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…