float w, h; //w:幅, h:高さ

        #endregion Fields

        #region Constructors

        //コンストラクタ
        public osCamera()
        {
            Upward = new Vector3D();
            Setposition = new Vector3D();
            LookatPoint = new Vector3D();
            CameraX = new Vector3D();
            CameraY = new Vector3D();
            CameraZ = new Vector3D();
            Light = new Vector3D();
            rotatematrix = new Matrix(3);
            projectionmatrix = new Matrix(3);
            Upward.X = 0.0f;
            Upward.Y = 0.0f;
            Upward.Z = 1.0f;
            Setposition.X = 100.0f;
            Setposition.Y = 300.0f;
            Setposition.Z = 100.0f;
            LookatPoint.X = 0.0f;
            LookatPoint.Y = 0.0f;
            LookatPoint.Z = 0.0f;
            temp2 = new Vector3D(-Setposition.X, -Setposition.Y, LookatPoint.Z);
            r = Setposition.Getnorm();
            alpha = Math.Atan(Setposition.Y / Setposition.X);
            beta = Math.Asin((double)Setposition.Z / r);
            Light.X = 50.0f;
            Light.Y = 60.0f;
            Light.Z = 100.0f;
            angle = Math.PI / 3.0;
            aspect = 1.0f;
            nearZ = 10.0f;
            farZ = 20.0f;
        }