public static double getAngle ( AFPChain afpChain ) throws StructureException { if ( afpChain . getBlockNum ( ) < 1 ) { throw new StructureException ( "No aligned residues" ) ; } Matrix rotation = afpChain . getBlockRotationMatrix ( ) [ 0 ] ; if ( rotation == null ) { throw new NullPointerException ( "AFPChain does not contain a rotation matrix" ) ; } return getAngle ( rotation ) ; }
Calculate the rotation angle for a structure