Simply3DScan
Camera.cs
Go to the documentation of this file.
1 using PostSharp.Patterns.Contracts;
2 namespace Configuration
3 {
7  public class Camera
8  {
15  public string Name { get; set; }
22  public string Moniker { get; set; }
29  [Required]
30  public Coordinates WorldCoordinates { get; set; }
37  [StrictlyPositive]
38  public int Width { get; set; }
45  [StrictlyPositive]
46  public int Height { get; set; }
53  public float WorldWidth { get; set; }
60  public float WorldHeight => this.WorldWidth*((float) this.Height/(float) this.Width);
61  }
62 }
float WorldHeight
Gets the height of the world.
Definition: Camera.cs:60
string Moniker
Gets or sets the moniker.
Definition: Camera.cs:22
string Name
Gets or sets the name.
Definition: Camera.cs:15
X,Y,Z - coordinates
Definition: Coordinates.cs:6
Configuration of a camera
Definition: Camera.cs:7
float WorldWidth
Gets or sets the width of the world.
Definition: Camera.cs:53
int Height
Gets or sets the height of the frame.
Definition: Camera.cs:46
Coordinates WorldCoordinates
Gets or sets the world coordinates.
Definition: Camera.cs:30
int Width
Gets or sets the width.
Definition: Camera.cs:38