示例#1
0
 public Transformation Translate(float x, float y, float z)
 {
     Vector translate = new Vector(x, y, z);
     Transformation tempTrans = new Transformation(this);
     tempTrans.Vector += tempTrans.Matrix * translate;
     return tempTrans;
 }
示例#2
0
 public Vector Trasnform(Transformation trans)
 {
     Vector tempVec = new Vector(this);
     tempVec = trans.Matrix * tempVec;
     return tempVec;
 }
示例#3
0
 public Color(Color copy)
 {
     this._vector = new Vector(copy._vector);
 }
示例#4
0
 public Vector(Vector copy)
     : this(copy.X, copy.Y, copy.Z)
 {
 }
示例#5
0
 public Color(float r, float g, float b)
 {
     this._vector = new Vector(r, g, b);
 }