Skip to content

Commit

Permalink
Merge pull request #461 from DomCR/viewport-viewWidth
Browse files Browse the repository at this point in the history
Viewport ViewWidth porperty
  • Loading branch information
DomCR authored Sep 27, 2024
2 parents 994ff03 + c9a638c commit 73d309e
Showing 1 changed file with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,23 +93,34 @@ public class Viewport : Entity
public double LensLength { get; set; }

/// <summary>
/// Front clip plane Z value
/// Front clip plane Z value.
/// </summary>
[DxfCodeValue(43)]
public double FrontClipPlane { get; set; }

/// <summary>
/// Back clip plane Z value
/// Back clip plane Z value.
/// </summary>
[DxfCodeValue(44)]
public double BackClipPlane { get; set; }

/// <summary>
/// View height(in model space units)
/// View height(in model space units).
/// </summary>
[DxfCodeValue(45)]
public double ViewHeight { get; set; }

/// <summary>
/// View width (in model space units).
/// </summary>
public double ViewWidth
{
get
{
return this.ViewHeight / this.Height * this.Width;
}
}

/// <summary>
/// Snap angle
/// </summary>
Expand Down

0 comments on commit 73d309e

Please sign in to comment.