Class Viewport

Constructors

Properties

config: MiniGLConfig
convertTransform: mat3
gl: WebGL2RenderingContext
height: number = 100
matrix: mat3
miniGL: MiniGL
pixelRatio: number = 1
ratio: number = 1
renderHeight: number = 200
renderWidth: number = 200
rotation: number = ...
scale: number = 1
transform: mat3
translate: number[] = ...
width: number = 100

Methods

  • Parameters

    • x: number = 0
    • y: number = 0

    Returns {
        x: number;
        y: number;
    }

    • x: number
    • y: number
  • Parameters

    • x: number = 0
    • y: number = 0

    Returns {
        x: number;
        y: number;
    }

    • x: number
    • y: number
  • Parameters

    • x: number = 0
    • y: number = 0

    Returns {
        x: number;
        y: number;
    }

    • x: number
    • y: number
  • Parameters

    • x: number = 0
    • y: number = 0

    Returns {
        x: number;
        y: number;
    }

    • x: number
    • y: number

Generated using TypeDoc