public void update(TuioContainer c) { base.update(c.getX(), c.getY()); this.x_speed = c.getXSpeed(); this.y_speed = c.getYSpeed(); this.motion_speed = (float)Math.Sqrt(x_speed * x_speed + y_speed * y_speed); this.motion_accel = c.getMotionAccel(); path.Add(new TuioPoint(xpos, ypos)); state = UPDATED; timestamp = UNDEFINED; }
public TuioContainer(TuioContainer c) : base(c) { this.session_id = getSessionID(); this.x_speed = 0.0f; this.y_speed = 0.0f; this.motion_speed = 0.0f; this.motion_accel = 0.0f; path = new List <TuioPoint>(); path.Add(new TuioPoint(c.getX(), c.getY())); state = ADDED; timestamp = UNDEFINED; }