GeometryPlugin

View source

ExtendsPlugin

Adds geometry value support to an App.

Register this plugin when the app uses BoundType, BoundingBox2D, or BoundingCircle with engine features that support geometry values. The app must register CorePlugin, ReflectPlugin, and MathPlugin separately; registering GeometryPlugin does not install those dependencies automatically.

Examples

import { App } from '@wimaengine/app'
import { CorePlugin } from '@wimaengine/core'
import { GeometryPlugin } from '@wimaengine/geometry'
import { MathPlugin } from '@wimaengine/math'
import { ReflectPlugin } from '@wimaengine/reflect'

new App()
  .registerPlugin(new ReflectPlugin())
  .registerPlugin(new CorePlugin())
  .registerPlugin(new MathPlugin())
  .registerPlugin(new GeometryPlugin())
  .run()

Constructor


constructor()

Methods