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; }
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; }