/js/lib/Socket.IO-node/support/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/math/NullReduction.as

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs · ActionScript · 34 lines · 26 code · 5 blank · 3 comment · 0 complexity · a1aff2ba4a41260150f306e1b5fab4ae MD5 · raw file

  1. package com.hurlant.math
  2. {
  3. use namespace bi_internal;
  4. /**
  5. * A "null" reducer
  6. */
  7. public class NullReduction implements IReduction
  8. {
  9. public function revert(x:BigInteger):BigInteger
  10. {
  11. return x;
  12. }
  13. public function mulTo(x:BigInteger, y:BigInteger, r:BigInteger):void
  14. {
  15. x.multiplyTo(y,r);
  16. }
  17. public function sqrTo(x:BigInteger, r:BigInteger):void
  18. {
  19. x.squareTo(r);
  20. }
  21. public function convert(x:BigInteger):BigInteger
  22. {
  23. return x;
  24. }
  25. public function reduce(x:BigInteger):void
  26. {
  27. }
  28. }
  29. }