API (v2.0.0) - Giro3D
    Preparing search index...

    Interface for objects that expose a default camera point of view.

    interface HasDefaultPointOfView {
        hasDefaultPointOfView: true;
        getDefaultPointOfView(
            params: { camera: Camera },
        ): Readonly<PointOfView> | null;
    }

    Implemented by

    Index

    Properties

    hasDefaultPointOfView: true

    Readonly flag to check if a given object implements HasDefaultPointOfView.

    Methods

    • Returns a PointOfView that matches this object, or null if the point of view could not be computed (e.g if the object is not yet ready), or if the camera is not supported (e.g an orthographic camera might not be supported by all implementations).

      Note: this point of view is only applicable to the camera that was passed as argument, as long as the camera optical parameters do not change (i.e FOV for perspective cameras, and volume size for orthographic cameras), and as long as the object has not moved.

      Parameters

      • params: { camera: Camera }

        The parameters.

        • camera: Camera

          The camera to compute the point of view.

      Returns Readonly<PointOfView> | null