-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathParticle.h
42 lines (35 loc) · 1 KB
/
Particle.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
//
// Particle.h
// ModeMaker
//
// Created by David Hirsch on 9/21/09.
// Copyright 2009 Western Washington University. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface Particle : NSObject <NSCoding> {
NSPoint center;
float area;
NSBezierPath *myPath;
}
@end
@interface Particle (Abstract)
- (void) draw;
- (float) normalValueWithMean: (float) inMean
standardDev:(float) inSD;
- (BOOL) containsPoint: (NSPoint) inPoint;
- (id) initWithBoundsRect: (NSRect) boundsRect
size: (float) inSize
sizeSD: (float) inSizeSD
aspectRatio: (float) inAspectRatio
aspectRatioSD: (float) inAspectRatioSD
complexity: (short) inComplexity
complexitySD: (float) inComplexitySD
fabricStrength: (float) inFabricStrength
allowReentrants: (BOOL) inAllowReentrants;
- (BOOL) overlapsWith: (Particle *) inOtherParticle;
- (NSPoint) center;
- (void) setCenter: (NSPoint)input;
- (void) adjustAreaByFactor: (float) areaFactor;
- (void) adaptToSize;
- (NSBezierPath *) path;
@end