()
| 584 | cam.lookAt(0, 0, 0); |
| 585 | const s = makeAnimated({ billboard: "cylindrical" }); |
| 586 | const project = () => { |
| 587 | s._billboardCam = cam; |
| 588 | s._projectVerticesWorld(0, 0, 0); |
| 589 | const c0 = cam.worldToScreen( |
| 590 | new Vector3d(s.vertices[0], s.vertices[1], s.vertices[2]), |
| 591 | new Vector2d(), |
| 592 | ); |
| 593 | const c1 = cam.worldToScreen( |
| 594 | new Vector3d(s.vertices[3], s.vertices[4], s.vertices[5]), |
| 595 | new Vector2d(), |
| 596 | ); |
| 597 | return { c0, c1 }; |
| 598 | }; |
| 599 | const before = project(); |
| 600 | expect(before.c0.x).toBeLessThan(before.c1.x); // BL left of BR |
| 601 | s.flipX(); |
no test coverage detected