//------------------------------------------------------------------------------
//
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
namespace Brutal.GltfApi {
using System.Linq;
using System.Runtime.Serialization;
using System.Text.Json.Serialization;
///
/// Object part of the GLTF file schema
/// An orthographic camera containing properties to create an orthographic projection matrix.
///
public partial class CameraOrthographic {
///
/// Backing field for Xmag.
///
private float m_xmag;
///
/// Backing field for Ymag.
///
private float m_ymag;
///
/// Backing field for Zfar.
///
private float m_zfar;
///
/// Backing field for Znear.
///
private float m_znear;
///
/// Backing field for Extensions.
///
private System.Collections.Generic.Dictionary m_extensions;
///
/// Backing field for Extras.
///
private Extras m_extras;
///
/// The floating-point horizontal magnification of the view. This value **MUST NOT** be equal to zero. This value **SHOULD NOT** be negative.
///
[System.Text.Json.Serialization.JsonRequiredAttribute()]
[System.Text.Json.Serialization.JsonPropertyNameAttribute("xmag")]
public float Xmag {
get {
return this.m_xmag;
}
set {
this.m_xmag = value;
}
}
///
/// The floating-point vertical magnification of the view. This value **MUST NOT** be equal to zero. This value **SHOULD NOT** be negative.
///
[System.Text.Json.Serialization.JsonRequiredAttribute()]
[System.Text.Json.Serialization.JsonPropertyNameAttribute("ymag")]
public float Ymag {
get {
return this.m_ymag;
}
set {
this.m_ymag = value;
}
}
///
/// The floating-point distance to the far clipping plane. This value **MUST NOT** be equal to zero. `zfar` **MUST** be greater than `znear`.
///
[System.Text.Json.Serialization.JsonRequiredAttribute()]
[System.Text.Json.Serialization.JsonPropertyNameAttribute("zfar")]
public float Zfar {
get {
return this.m_zfar;
}
set {
if ((value <= 0D)) {
throw new System.ArgumentOutOfRangeException("Zfar", value, "Expected value to be greater than 0");
}
this.m_zfar = value;
}
}
///
/// The floating-point distance to the near clipping plane.
///
[System.Text.Json.Serialization.JsonRequiredAttribute()]
[System.Text.Json.Serialization.JsonPropertyNameAttribute("znear")]
public float Znear {
get {
return this.m_znear;
}
set {
if ((value < 0D)) {
throw new System.ArgumentOutOfRangeException("Znear", value, "Expected value to be greater than or equal to 0");
}
this.m_znear = value;
}
}
///
/// JSON object with extension-specific objects.
///
[System.Text.Json.Serialization.JsonPropertyNameAttribute("extensions")]
public System.Collections.Generic.Dictionary Extensions {
get {
return this.m_extensions;
}
set {
this.m_extensions = value;
}
}
///
/// Application-specific data.
///
[System.Text.Json.Serialization.JsonPropertyNameAttribute("extras")]
public Extras Extras {
get {
return this.m_extras;
}
set {
this.m_extras = value;
}
}
///
/// This method is used to determine if the Extensions property should be serialized.
///
public bool ShouldSerializeExtensions() {
return ((m_extensions == null)
== false);
}
///
/// This method is used to determine if the Extras property should be serialized.
///
public bool ShouldSerializeExtras() {
return ((m_extras == null)
== false);
}
}
}