Esempio n. 1
0
 public DisplacementPoint(Displacement parent, int x, int y)
 {
     Parent = parent;
     XIndex = x;
     YIndex = y;
     CurrentPosition = new Vertex(Coordinate.Zero, parent);
     InitialPosition = Coordinate.Zero;
     Displacement = new Vector(Coordinate.UnitZ, 0);
     OffsetDisplacement = new Vector(Coordinate.UnitZ, 0);
     Alpha = 0;
 }
Esempio n. 2
0
 public override void FocusOn(Box box)
 {
     var dist = System.Math.Max(System.Math.Max(box.Width, box.Length), box.Height);
     var normal = Camera.Location - Camera.LookAt;
     var v = new Vector(new Coordinate((decimal)normal.X, (decimal)normal.Y, (decimal)normal.Z), dist);
     FocusOn(box.Center, new Coordinate(v.X, v.Y, v.Z));
 }