Nez.DeferredLighting.PolygonMesh.generateVerts C# (CSharp) Метод

generateVerts() приватный Метод

private generateVerts ( Vector2 points ) : Microsoft.Xna.Framework.Graphics.VertexPosition[]
points Vector2
Результат Microsoft.Xna.Framework.Graphics.VertexPosition[]
		VertexPosition[] generateVerts( Vector2[] points )
		{
			// we need to make tris from the points. all points will be shared with the center (0,0)
			var verts = new VertexPosition[points.Length + 1];

			// the first point is the center so we start at 1
			for( var i = 1; i <= points.Length; i++ )
			{
				verts[i].Position.X = points[i - 1].X;
				verts[i].Position.Y = points[i - 1].Y;
			}

			return verts;
		}