All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vertexvis.model.OneOfPerspectiveCameraOrthographicCamera Maven / Gradle / Ivy

package com.vertexvis.model;

import javax.annotation.Nullable;

public class OneOfPerspectiveCameraOrthographicCamera {
  private PerspectiveCamera perspectiveCamera;
  private OrthographicCamera orthographicCamera;

  public OneOfPerspectiveCameraOrthographicCamera(PerspectiveCamera perspectiveCamera) {
    this.perspectiveCamera = perspectiveCamera;
  }

  public OneOfPerspectiveCameraOrthographicCamera(OrthographicCamera orthographicCamera) {
    this.orthographicCamera = orthographicCamera;
  }

  public Object getData() {
    if (this.perspectiveCamera != null) {
      return this.perspectiveCamera;
    }
    if (this.orthographicCamera != null) {
      return this.orthographicCamera;
    }

    return null;
  }

  @Nullable
  public OrthographicCamera getOrthographicCamera() {
    return this.orthographicCamera;
  }

  @Nullable
  public PerspectiveCamera getPerspectiveCamera() {
    return this.perspectiveCamera;
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy