rfw2d
    Preparing search index...

    Class Camera2D

    An orthographic camera.

    Index

    Constructors

    Properties

    transform: Transform2D = ...

    Methods

    • Pan this camera globally.

      Parameters

      • x: number

        Amount to pan on X axis

      • Optionaly: number

        Optional, amount to pan on Y axis. If omitted, will be x

      Returns this

      Self

    • Pan this camera locally (respecting scaling/zoom).

      Parameters

      • x: number

        Amount to pan on X axis

      • Optionaly: number

        Optional, amount to pan on Y axis. If omitted, will be x

      Returns this

    • Pan this camera to an absolute point.

      Parameters

      • x: number

        Point X coordinate

      • Optionaly: number

        Optional, point Y coordinate. If omitted, will be x

      Returns this

      Self

    • Tilt this camera.

      Parameters

      • degrees: number

        Tilt amount in degrees

      Returns this

      Self

    • Tilt this camera.

      Parameters

      • radians: number

        Tilt amount in radians

      Returns this

      Self

    • Tilt this camera to an absolute rotation.

      Parameters

      • degrees: number

        Tilt in degrees

      Returns this

      Self

    • Tilt this camera to an absolute rotation.

      Parameters

      • radians: number

        Tilt in radians

      Returns this

      Self

    • Zoom this camera.

      Parameters

      • zoom: number

        Zoom amount

      Returns this

      Self

    • Zoom this camera to an absolute zoom level.

      Parameters

      • zoom: number

        Absolute zoom value

      Returns this

      Self