//
//  MPMathRules.h
//  MathKit
//
//  Created by Kim Wittenburg on 14.09.14.
//  Copyright (c) 2014 Kim Wittenburg. All rights reserved.
//


/*!
 @header
 This file contains the <code>MPMathRules</code> class.
 */


/*!
    @const      MPMathRulesIsUsingDegreesKey
    @abstract   Predefined key that is used to store the properties of the
                <code>MPMathRules</code> class in the <code>NSUserDefaults</code>
                database.
 */
FOUNDATION_EXPORT NSString *MPMathRulesIsUsingDegreesKey;



@class MPMathRules;


/*!
    @class      MPMathRules
    @abstract   The math rules class stores global settings concerning
                mathematical interpretations
    
    @discussion The <code>MPMathRules</code> class is a singletone class. There
                can only exist one instance (the shared instance) at any time.
 */
@interface MPMathRules : NSObject

/*!
    @method     sharedRules
    @abstract   Returnes the shared <code>MPMathRules</code> instance.
 */
+ (MPMathRules *)sharedRules;


/*!
    @property   isUsingDegrees
    @abstract   Specifies whether trigonometric functions use degree values.
 
    @discussion If set to <code>NO</code> radians are used instead. The default
                value is <code>NO</code>.
 */
@property (nonatomic) BOOL isUsingDegrees;

@end
