Constants.tests.js 831 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * @author bhouston / http://exocortex.com
  3. */
  4. import { Vector2 } from '../../../../src/math/Vector2';
  5. import { Vector3 } from '../../../../src/math/Vector3';
  6. export const x = 2;
  7. export const y = 3;
  8. export const z = 4;
  9. export const w = 5;
  10. export const negInf2 = new Vector2( - Infinity, - Infinity );
  11. export const posInf2 = new Vector2( Infinity, Infinity );
  12. export const negOne2 = new Vector2( - 1, - 1 );
  13. export const zero2 = new Vector2();
  14. export const one2 = new Vector2( 1, 1 );
  15. export const two2 = new Vector2( 2, 2 );
  16. export const negInf3 = new Vector3( - Infinity, - Infinity, - Infinity );
  17. export const posInf3 = new Vector3( Infinity, Infinity, Infinity );
  18. export const zero3 = new Vector3();
  19. export const one3 = new Vector3( 1, 1, 1 );
  20. export const two3 = new Vector3( 2, 2, 2 );
  21. export const eps = 0.0001;