Beispiel #1
0
 public VertexInfoColor(Vector4f Vector4f)
 {
     this.R = Vector4f.X;
     this.G = Vector4f.Y;
     this.B = Vector4f.Z;
     this.A = Vector4f.W;
 }
Beispiel #2
0
        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];
        }
Beispiel #3
0
 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]));
 }