コード例 #1
0
        public ModelGeometry( ShapeBase Shape, Matrix ModelToWorld )
        {
            if ( Shape == null )
            {
                throw new ArgumentNullException( "Shape" );
            }

            if ( ModelToWorld == null )
            {
                throw new ArgumentNullException( "ModelToWorld" );
            }

            this.Shape = Shape;
            this.WorldToModel = ModelToWorld.Inverse;
        }
コード例 #2
0
        public PremultipliedGeometry( ShapeBase Shape, Matrix ModelToWorld )
        {
            if ( Shape == null )
            {
                throw new ArgumentNullException( "Shape" );
            }

            if ( ModelToWorld == null )
            {
                throw new ArgumentNullException( "ModelToWorld" );
            }

            this.Shape = Shape;
            this.ModelToWorld = ModelToWorld;
        }