Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "project"

Index

Functions

Functions

Const project

  • Transforms given point p (4D, homogeneous) with M44 mvp, applies perspective divide and then transforms XY components with M23 view matrix. Returns 3D vector. The result Z component can be used for depth sorting.

    Parameters

    Returns Vec

Const unproject

  • Reverse operation of project. If invert is true (default: false), both mvp and view matrices will be inverted first (non-destructively), else they're both assumed to be inverted already.

    Parameters

    Returns Vec

Generated using TypeDoc