GetReverse() public method

public GetReverse ( ) : Vector2D
return 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;
        }