Skip to main content

convertToCanvasCoordinatesToRef

Callable

  • convertToCanvasCoordinatesToRef<T>(scene: Scene, c: Vertex2, out: T): T

  • Converts screen coordinates to canvas coordinates.


    Type parameters

    Parameters

    • scene: Scene

      Scene which utilizes the canvas we which to get coordinate for

    • c: Vertex2

      The coordinate in local (DOM content) coordinates

    • out: T

      canvas coordinate

    Returns T

    Reference to out.