MCPcopy Create free account
hub / github.com/DjDeveloperr/deno_desktop / constructor

Method constructor

examples/extern/gmath.bundle.js:1506–1512  ·  view source on GitHub ↗
(fovy, aspect, near, far)

Source from the content-addressed store, hash-verified

1504 near;
1505 far;
1506 constructor(fovy, aspect, near, far){
1507 fovy = fovy.toRad();
1508 this.fovy = fovy;
1509 this.aspect = aspect;
1510 this.near = near;
1511 this.far = far;
1512 }
1513 toPerspective() {
1514 const angle = this.fovy.div(2);
1515 const ymax = this.near * angle.tan();

Callers

nothing calls this directly

Calls 1

toRadMethod · 0.45

Tested by

no test coverage detected