public void setConstraints ( boolean zeroSkew , boolean principlePointOrigin , boolean knownAspect , double aspect ) { if ( knownAspect && ! zeroSkew ) throw new IllegalArgumentException ( "If aspect is known then skew must be zero" ) ; this . zeroSkew = zeroSkew ; this . principlePointOrigin = principlePointOrigin ; this . knownAspectRatio = knownAspect ; this . aspectRatio = aspect ; notZeros . resize ( 6 ) ; for ( int i = 0 ; i < 6 ; i ++ ) { notZeros . data [ i ] = i ; } if ( principlePointOrigin ) { notZeros . remove ( 4 ) ; notZeros . remove ( 2 ) ; } if ( zeroSkew ) { notZeros . remove ( 1 ) ; } }
Specifies linear constraints