public VertexInfoColor(Vector4f Vector4f) { this.R = Vector4f.X; this.G = Vector4f.Y; this.B = Vector4f.Z; this.A = Vector4f.W; }
public int AddVertex(Vector4f Position) { WriteLine("# v " + Position.X + " " + Position.Y + " " + Position.Z + " "); if (!VerticesIndices.ContainsKey(Position)) { //WriteVerticeLine("v " + Position.X + " " + Position.Y + " " + Position.Z); Vertices.Add(Position); VerticesIndices[Position] = VertexIndex; return VertexIndex++; } return VerticesIndices[Position]; }
public VertexInfoVector3f(Vector4f Vector4f) { this.X = Vector4f.X; this.Y = Vector4f.Y; this.Z = Vector4f.Z; }
public Vector4f Column(int n) { return(Vector4f.Create(Row0[n], Row1[n], Row2[n], Row3[n])); }