field.kit.p5

AdvancedCamera

class AdvancedCamera extends Camera

Implements more intuitive camera manipulation methods

Inherits

  1. Camera
  2. Logger
  3. Renderable
  4. AnyRef
  5. Any

Value Members

  1. def :=(c: AdvancedCamera): AdvancedCamera

  2. def :=(c: Camera): Camera

    Sets this camera to the values of a given camera

    Sets this camera to the values of a given camera

    definition classes: Camera
  3. def aim(target: Vec3): Unit

  4. def arc(elevationOffset: Float): Unit

    Arc the camera over (under) a center of interest along a set azimuth

    Arc the camera over (under) a center of interest along a set azimuth

  5. def boom(amount: Float): Unit

    Move the camera and target simultaneously along the camera's Y axis

    Move the camera and target simultaneously along the camera's Y axis

  6. def circle(azimuthOffset: Float): Unit

    Circle the camera around a center of interest at a set elevation

    Circle the camera around a center of interest at a set elevation

  7. def clone(): AdvancedCamera

    This method creates and returns a copy of the receiver object

    This method creates and returns a copy of the receiver object.

    The default implementation of the clone method is platform dependent.

  8. def direction: Vec3

  9. def direction_=(v: Vec3): Unit

  10. def dolly(amount: Float): Unit

    Move the camera and target along the view vector

    Move the camera and target along the view vector

  11. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an equivalence relation:

    • It is reflexive: for any instance x of type Any, x.equals(x) should return true.
    • It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true.
    • It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same Int (o1.hashCode.equals(o2.hashCode)).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    definition classes: AnyRef ⇐ Any
  12. def error(m: Any*): Unit

  13. def fatal(code: Int, m: Any*): Unit

  14. def fatal(m: Any*): Unit

  15. def feed(app: PApplet): Unit

  16. def fine(m: Any*): Unit

  17. var fovY: Float

    Convenience store for fovY

    Convenience store for fovY. Only set during setFrustumPerspective and never used.

    definition classes: Camera
  18. def frame(eyeX: Float, eyeY: Float, eyeZ: Float, centerX: Float, centerY: Float, centerZ: Float, upX: Float, upY: Float, upZ: Float): Unit

  19. def frustum(left: Float, right: Float, bottom: Float, top: Float, near: Float, far: Float): Unit

  20. def gl: GL

  21. def hashCode(): Int

    Returns a hash code value for the object

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    definition classes: AnyRef ⇐ Any
  22. var height: Int

  23. def info(m: Any*): Unit

  24. def init(fovY: Float, width: Int, height: Int): Unit

    fovY

    field of view in radians

    width

    of the viewport

    height

    of the viewport

    definition classes: Camera
  25. def location: Vec3

  26. def location_=(v: Vec3): Unit

  27. def logName: String

  28. def logName_=(name: String): Unit

  29. def modelView: Mat4

    definition classes: Camera
  30. def perspective(fovY: Float, aspect: Float, zNear: Float, zFar: Float): Unit

  31. def projection: Mat4

    definition classes: Camera
  32. def render: Unit

    Applies this cameras matrices and settings to the GL view

    Applies this cameras matrices and settings to the GL view

    definition classes: CameraRenderable
  33. def resize(width: Int, height: Int): Unit

  34. def toString(): String

    Returns a string representation of the object

    Returns a string representation of the object.

    The default representation is platform dependent.

  35. def track(offsetX: Float, offsetY: Float): Unit

    Moves the camera and target simultaneously in the camera's X-Y plane

    Moves the camera and target simultaneously in the camera's X-Y plane

  36. def truck(amount: Float): Unit

    Move the camera and target simultaneously along the camera's X axis

    Move the camera and target simultaneously along the camera's X axis

  37. def tumble(azimuthOffset: Float, elevationOffset: Float): Unit

  38. def up: Vec3

  39. def up_=(v: Vec3): Unit

  40. def update: Unit

    Forces all aspect of the camera to be updated from internal values, and sets all dirty flags to true so that the next render() call will fully set this camera to the render context

    Forces all aspect of the camera to be updated from internal values, and sets all dirty flags to true so that the next render() call will fully set this camera to the render context.

    definition classes: Camera
  41. def warn(m: Any*): Unit

  42. var width: Int

Instance constructors

  1. new AdvancedCamera(width: Int, height: Int)

  2. new AdvancedCamera()