BRDFLafortuneFitting.Program.ENSUREVALID C# (CSharp) Method

ENSUREVALID() protected static method

protected static ENSUREVALID ( double _Coefficients ) : void
_Coefficients double
return void
        protected static void ENSUREVALID( double[] _Coefficients )
        {
            for ( int i=1; i < _Coefficients.Length; i++ )
            {
                double	v = _Coefficients[i];
                if ( double.IsInfinity( v ) )
                    throw new Exception( "Infinity!" );
                if ( double.IsNaN( v ) )
                    throw new Exception( "NaN!" );
            }
        }