示例#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;
 }