ARUP.IssueTracker.Navisworks.NavisWindow.getViewDir C# (CSharp) Method

getViewDir() private method

private getViewDir ( Viewpoint oVP ) : Vector3D
oVP Viewpoint
return Vector3D
        private Vector3D getViewDir(Viewpoint oVP)
        {
            double units = GetGunits();

            Rotation3D oRot = oVP.Rotation;
            // calculate view direction
            Rotation3D oNegtiveZ = new Rotation3D(0, 0, -1, 0);
            Rotation3D otempRot = MultiplyRotation3D(oNegtiveZ, oRot.Invert());
            Rotation3D oViewDirRot = MultiplyRotation3D(oRot, otempRot);
            // get view direction
            Vector3D oViewDir = new Vector3D(oViewDirRot.A, oViewDirRot.B, oViewDirRot.C);

            return oViewDir.Normalize();
        }
        private Vector3D getViewUp(Viewpoint oVP)