public override void Translate(float Ox, float Oy, float Oz) { float[] p1 = new float[3] { pBegin.x, pBegin.y, pBegin.z }; float[] p2 = new float[3] { pEnd.x, pEnd.y, pEnd.z }; _Affine tran = new _Affine(); tran.Translate(Ox, Oy, Oz); p1 = tran.ConvertPoint(p1); p2 = tran.ConvertPoint(p2); mBegin = new _Vector3D(p1); mEnd = new _Vector3D(p2); ChangeMatrix(); }
public override void Rotate(float Angle, float Ox, float Oy, float Oz) { float[] p1 = new float[3] { pBegin.x, pBegin.y, pBegin.z }; float[] p2 = new float[3] { pEnd.x, pEnd.y, pEnd.z }; _Affine rot = new _Affine(); rot.Rotate(Angle, Ox, Oy, Oz); p1 = rot.ConvertPoint(p1); p2 = rot.ConvertPoint(p2); mBegin = new _Vector3D(p1); mEnd = new _Vector3D(p2); ChangeMatrix(); }
public override void Translate(float Ox, float Oy, float Oz) { float[] p1 = LightPos; _Affine tran = new _Affine(); tran.Translate(Ox, Oy, Oz); p1 = tran.ConvertPoint(p1); _Math3D.CopyMatrix(LightPos, p1); ChangeMatrix(); }
public override void Rotate(float Angle, float Ox, float Oy, float Oz) { float[] p1 = LightPos; _Affine rot = new _Affine(); rot.Rotate(Angle, Ox, Oy, Oz); p1 = rot.ConvertPoint(p1); _Math3D.CopyMatrix(LightPos, p1); ChangeMatrix(); }