forked from sghr/iGeo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIDoubleI.java
111 lines (83 loc) · 2.89 KB
/
IDoubleI.java
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/*---
iGeo - http://igeo.jp
Copyright (c) 2002-2013 Satoru Sugihara
This file is part of iGeo.
iGeo is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, version 3.
iGeo is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with iGeo. If not, see <http://www.gnu.org/licenses/>.
---*/
package igeo;
/**
Interface of double (1 dimensional vector) to be used as IParameterObject.
@author Satoru Sugihara
*/
public interface IDoubleI extends IDoubleOp{
/**
@return primitive value
*/
public double x();
/**
@return fixed value but in wrapper class
*/
public IDouble get();
/**
@return generic parameter of the value (either of entity class or reference class)
*/
public IDoubleI getX();
/**
@return duplicated instance
*/
public IDoubleI dup();
/** alias of dup() */
public IDoubleI cp();
/** duplicate and add */
public IDoubleI cp(double v);
/** duplicate and add */
public IDoubleI cp(IDoubleI v);
public IDoubleI set(double v);
public IDoubleI set(IDoubleI v);
public IDoubleI set(IIntegerI v);
public IDoubleI add(IDoubleI v);
public IDoubleI add(double v);
public IDoubleI sub(IDoubleI v);
public IDoubleI sub(double v);
public IDoubleI mul(IDoubleI v);
public IDoubleI mul(double v);
public IDoubleI div(IDoubleI v);
public IDoubleI div(double v);
public IDoubleI neg();
public IDoubleI inv();
public IDoubleI abs();
public IDoubleI pow(double n);
public IDoubleI pow(IDoubleI n);
public IDoubleI sq();
public IDoubleI sqrt();
public IDoubleI exp();
public IDoubleI log();
public IDoubleI sin();
public IDoubleI cos();
public IDoubleI tan();
public IDoubleI asin();
public IDoubleI acos();
public IDoubleI atan();
public IDoubleI atan2(double x2);
public IDoubleI atan2(IDoubleI x2);
public IDoubleI deg();
public IDoubleI rad();
public boolean eq(double v);
public boolean eq(IDoubleI v);
//public IBoolI eqR(IDoubleI v);
public boolean eq(ISwitchE e, IDoubleI v);
public IBoolI eq(ISwitchR r, IDoubleI v);
public boolean eq(double v, double resolution);
public boolean eq(IDoubleI v, double resolution);
//public IBoolI eqR(IDoubleI v, IDoubleI resolution);
public boolean eq(ISwitchE e, IDoubleI v, double resolution);
public IBoolI eq(ISwitchR r, IDoubleI v, IDoubleI resolution);
}