TUIO.TuioContainer.update C# (CSharp) Method

update() public method

public update ( TuioContainer tcon ) : void
tcon TuioContainer
return void
        public void update(TuioContainer tcon)
        {
            base.update(tcon.getX(),tcon.getY());

            x_speed = tcon.getXSpeed();
            y_speed = tcon.getYSpeed();
            motion_speed = (float)Math.Sqrt(x_speed*x_speed+y_speed*y_speed);
            motion_accel = tcon.getMotionAccel();
            path.Add(new TuioPoint(currentTime,xpos,ypos));
            if (motion_accel>0) state = TUIO_ACCELERATING;
            else if (motion_accel<0) state = TUIO_DECELERATING;
            else state = TUIO_STOPPED;
        }

Same methods

TuioContainer::update ( TuioTime ttime, float xp, float yp ) : void
TuioContainer::update ( TuioTime ttime, float xp, float yp, float xs, float ys, float ma ) : void
TuioContainer::update ( float xp, float yp, float xs, float ys, float ma ) : void