getYSpeed() 공개 메소드

public getYSpeed ( ) : float
리턴 float
예제 #1
0
 /**
  * Custom heightmap update
  *
  */
 public void update(TuioContainer tcon, float _x, float _y, int _width, int _height, List <float> _heightPoints)
 {
     base.update(tcon.getX(), tcon.getY());
     heightPoints = _heightPoints;
     width        = _width;
     height       = _height;
     hxPos        = _x;
     hyPos        = _y;
     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;
     }
 }
        /**
         * Takes the atttibutes of the provided TuioContainer
         * and assigs these values to this TuioContainer.
         * The TuioTime time stamp of this TuioContainer remains unchanged.
         *
         * @param	tcon	the TuioContainer to assign
         */
        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;
            }
        }
예제 #3
0
        /**
         * Takes the atttibutes of the provided TuioContainer
         * and assigs these values to this TuioContainer.
         * The TuioTime time stamp of this TuioContainer remains unchanged.
         *
         * @param	tcon	the TuioContainer to assign
         */
        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;
        }
예제 #4
0
        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;
        }
        /**
         * Takes the atttibutes of the provided TuioContainer
         * and assigs these values to this TuioContainer.
         * The TuioTime time stamp of this TuioContainer remains unchanged.
         *
         * @param	tcon	the TuioContainer to assign
         */
        public void update(TuioContainer tcon)
        {
            lastPoint = path[path.Count - 1];
            if (path.Count > 1)
                lastLastPoint = path[path.Count - 2];

            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();
            lock (pathSync)
            {
                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;
            this.trimPath();
        }
예제 #6
0
 /**
  * Custom heightmap update
  *
  */
 public void update(TuioContainer tcon, float _x, float _y, int _width, int _height, List<float> _heightPoints)
 {
     base.update(tcon.getX(),tcon.getY());
     heightPoints = _heightPoints;
     width = _width;
     height = _height;
     hxPos = _x;
     hyPos = _y;
     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;
 }