This wiki describes utility classes in Haystack.
A basic class for all the missing mathematical and arithmetic operations and functions that are of common usage.
+ (double)degreesToRadians:(double)angle;
+ (double)radiansToDegrees:(double)radians;
+ (double)random;
+ (double)randomBetweenMin:(double)min max:(double)max;
+ (NSInteger)randomBetweenMin:(NSInteger)min max:(NSInteger)max;
A simple class that helps with formatting units and adds correct prefix, such as milli, kilo, etc.
+ (NSString *)stringFromNumber:(NSNumber *)number forUnit:(HSUnitFormatterUnitType)unit;
+ (NSString *)fullStringFromNumber:(NSNumber *)number forUnit:(HSUnitFormatterUnitType)unit;
A weak pointer wrapper object to be used to store weak references to certain objects.
@property (nonatomic, weak) id object;
- (BOOL)isValid;
+ (instancetype)weakPointerWithObject:(id)object;