Guest User

Untitled

a guest
Apr 24th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1.  
  2. /**
  3. * Created by IntelliJ IDEA.
  4. * User: teamon
  5. * Date: 2009-11-07
  6. * Time: 15:57:46
  7. */
  8.  
  9. import TUIO.TuioObject
  10.  
  11. abstract class WnkObject {
  12. var x,y = 0
  13. var angle = 0.0
  14. var angleDegrees = 0
  15. var fxClass = ""
  16.  
  17.  
  18. def this(tobj: TuioObject) {
  19. this()
  20. x = (tobj.getX * 1024).toInt
  21. y = (tobj.getY * 768).toInt
  22. angle = tobj.getAngle
  23. angleDegrees = tobj.getAngleDegrees.toInt
  24. }
  25.  
  26.  
  27. }
  28.  
  29.  
  30. class SampleObject extends WnkObject {
  31. fxClass = "blah"
  32. }
Add Comment
Please, Sign In to add comment