forked from kronihias/DarwiinRemoteOSC
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGraphPoint.m
More file actions
52 lines (38 loc) · 720 Bytes
/
Copy pathGraphPoint.m
File metadata and controls
52 lines (38 loc) · 720 Bytes
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
47
48
49
50
51
52
//
// GraphPoint.m
// DarwiinRemote
//
// Created by KIMURA Hiroaki on 06/05/29.
// Copyright 2006 KIMURA Hiroaki. All rights reserved.
//
#import "GraphPoint.h"
@implementation GraphPoint
- (id)initWithValue:(float)_value time:(struct timeval)_tval{
value = _value;
tval = _tval;
/* Bogus values to keep view consistant */
x = _value;
y = _tval.tv_sec;
return self;
}
- (id)initWithCoordX:(float)_x Y:(float) _y time:(struct timeval)_tval{
x = _x;
y = _y;
/* Bogus values to keep view consistant */
value = _y;
tval = _tval;
return self;
}
- (float) getX {
return x;
}
- (float) getY {
return y;
}
- (float) value {
return value;
}
- (struct timeval)timeValue{
return tval;
}
@end