UNPKG

mdx-m3-viewer

Version:

A browser WebGL model viewer. Mainly focused on models of the games Warcraft 3 and Starcraft 2.

19 lines (15 loc) 440 B
import JassAgent from './agent'; /** * type rect */ export default class JassRect extends JassAgent { center: Float32Array; min: Float32Array; max: Float32Array; constructor(minx: number, miny: number, maxx: number, maxy: number) { super(); this.center = new Float32Array([maxx - minx, maxy - miny]); this.min = new Float32Array([minx, miny]); this.max = new Float32Array([maxx, maxy]); } }