forked from natikgadzhi/XNMaths
-
Notifications
You must be signed in to change notification settings - Fork 1
/
XNFloatRange.h
38 lines (30 loc) · 905 Bytes
/
XNFloatRange.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// XNRange.h
// XNMaths
//
// Created by Нат Гаджибалаев on 24.11.09.
// Copyright 2009 Нат Гаджибалаев. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface XNFloatRange : NSObject
{
CGFloat min, max;
}
@property CGFloat min, max;
#pragma mark -
#pragma mark Class initializers
+ (XNFloatRange*) rangeWithMin:(CGFloat)aMin max:(CGFloat)aMax;
+ (XNFloatRange*) rangeWithRange:(NSRange)range;
+ (XNFloatRange*) rangeWithCArray:(CGFloat*)array withCapacity:(NSUInteger)capacity;
#pragma mark -
#pragma mark Instance initializers
- (XNFloatRange*) initWithMin: (CGFloat) aMin max: (CGFloat) aMax;
- (XNFloatRange*) initWithRange:(NSRange)range;
- (XNFloatRange*) initWithCArray:(CGFloat*)array withCapacity:(NSUInteger)capacity;
#pragma mark -
#pragma mark Instance logic
- (CGFloat) length;
#pragma mark -
#pragma mark Copying
- (XNFloatRange *) copy;
@end