예제 #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);
 }