-
Notifications
You must be signed in to change notification settings - Fork 3
/
XNBox.h
46 lines (34 loc) · 1.16 KB
/
XNBox.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
39
40
41
42
43
44
45
46
//
// XNBox.h
// XNMaths
//
// XNBox class interface
// Geometry boundary class
//
// Created by Нат Гаджибалаев on 01.12.09.
// Copyright 2009 Нат Гаджибалаев. All rights reserved.
//
#pragma mark -
#pragma mark Imports
#import <Cocoa/Cocoa.h>
@class XNFloatRange;
#pragma mark -
#pragma mark XNBox class interface
@interface XNBox : NSObject {
XNFloatRange *xRange, *yRange, *zRange;
}
@property(copy) XNFloatRange *xRange, *yRange, *zRange;
#pragma mark -
#pragma mark Class init methods
+ (XNBox*) boxWithRangesX: (XNFloatRange*)aXRange Y: (XNFloatRange*)aYRange Z: (XNFloatRange*)aZRange;
+ (XNBox*) boxWithXMin: (CGFloat)xMin XMax: (CGFloat)xMax YMin: (CGFloat)yMin YMax: (CGFloat)yMax ZMin: (CGFloat)zMin ZMax: (CGFloat)zMax;
#pragma mark -
#pragma mark Instance init methods
- (XNBox*) initWithRangesX: (XNFloatRange*)aXRange Y: (XNFloatRange*)aYRange Z: (XNFloatRange*)aZRange;
- (XNBox*) initWithXMin: (CGFloat)xMin XMax: (CGFloat)xMax YMin: (CGFloat)yMin YMax: (CGFloat)yMax ZMin: (CGFloat)zMin ZMax: (CGFloat)zMax;
#pragma mark -
#pragma mark Instance methods
- (CGFloat) length;
- (CGFloat) width;
- (CGFloat) height;
@end