Radegast.Rendering.Camera.Pan C# (CSharp) Method

Pan() public method

public Pan ( float deltaX, float deltaY ) : void
deltaX float
deltaY float
return void
        public void Pan(float deltaX, float deltaY)
        {
            Manual = true;
            Vector3 direction = Position - FocalPoint;
            direction.Normalize();
            Vector3 vy = direction % Vector3.UnitZ;
            Vector3 vx = vy % direction;
            Vector3 vxy = vx * deltaY + vy * deltaX;
            Position += vxy;
            FocalPoint += vxy;
        }