예제 #1
0
파일: View.cs 프로젝트: dzamkov/DUIP
 /// <summary>
 /// Composes two view such that a projection with the resulting view will be equivalent to a projection
 /// by A followed by a projection by B.
 /// </summary>
 public static View Compose(View A, View B)
 {
     return new View(
         B.Project(A.Offset),
         B.Right * A.Right.X + B.Down * A.Right.Y,
         B.Right * A.Down.X + B.Down * A.Down.Y);
 }
예제 #2
0
파일: Figure.cs 프로젝트: dzamkov/DUIP
 /// <summary>
 /// Creates a projected form of a figure.
 /// </summary>
 public static ProjectedFigure Project(Figure Figure, View Projection)
 {
     if (Figure == null)
         return null;
     return new ProjectedFigure(Projection, Figure);
 }
예제 #3
0
 /// <summary>
 /// Updates the current view for the camera state.
 /// </summary>
 private void _MakeView()
 {
     this._View = this._Camera.GetView(this.AspectRatio);
 }
예제 #4
0
파일: Figure.cs 프로젝트: dzamkov/DUIP
 public ProjectedFigure(View Projection, Figure Source)
 {
     this.Source = Source;
     this.Projection = Projection;
 }