GetReverse() 공개 메소드

public GetReverse ( ) : Vector2D
리턴 Vector2D
예제 #1
0
        public void Reflect(Vector2D normal)
        {
            Vector2D reflectiveVector = 2.0 * GetDotProduct(normal) * normal.GetReverse();

            _x += reflectiveVector.X;
            _y += reflectiveVector.Y;
        }
예제 #2
0
        public void Reflect(Vector2D normal)
        {
            Vector2D temp = new Vector2D(this);

            temp += 2.0 * GetDotProduct(normal) * normal.GetReverse();

            // copy calculated values over
            x = temp.x;
            y = temp.y;
        }
예제 #3
0
        public void Reflect(Vector2D normal)
        {
            Vector2D temp = new Vector2D(this);
            temp += 2.0 * GetDotProduct(normal) * normal.GetReverse();

            // copy calculated values over
            x = temp.x;
            y = temp.y;
        }
예제 #4
0
        public void Reflect(Vector2D normal)
        {
            Vector2D reflectiveVector = 2.0 * GetDotProduct(normal) * normal.GetReverse();

            _x += reflectiveVector.X;
            _y += reflectiveVector.Y;
        }