UV.js 338 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /**
  2. * @author mr.doob / http://mrdoob.com/
  3. */
  4. THREE.UV = function ( u, v ) {
  5. this.set(
  6. u || 0,
  7. v || 0
  8. );
  9. };
  10. THREE.UV.prototype = {
  11. set : function ( u, v ) {
  12. this.u = u;
  13. this.v = v;
  14. return this;
  15. },
  16. copy : function ( uv ) {
  17. this.set(
  18. uv.u,
  19. uv.v
  20. );
  21. return this;
  22. },
  23. constructor : THREE.UV
  24. };