Definition at line 33 of file OOJoystickProfile.m.
◆ copyWithZone:
- (id) copyWithZone: |
|
(NSZone *) | zone |
|
◆ end
◆ gradient:
- (double) gradient: |
|
(double) | t |
|
◆ init
◆ initWithData:right:
- (id) initWithData: |
|
(NSPoint) | left |
right: |
|
(NSPoint) | right |
Definition at line 39 of file OOJoystickProfile.m.
223{
224 double dx = right.x - left.
x;
225 if (dx <= 0.0)
226 {
228 }
229 if ((
self = [super
init]))
230 {
233 a[1] = (right.y - left.
y)/dx;
234 a[0] = left.y-
a[1]*left.
x;
237 }
238 return self;
239}
240
◆ initWithData:right:gradientleft:
- (id) initWithData: |
|
(NSPoint) | left |
right: |
|
(NSPoint) | right |
gradientleft: |
|
(double) | gradientleft |
Definition at line 39 of file OOJoystickProfile.m.
242{
243 double dx = right.x - left.
x;
244 if (dx <= 0.0)
245 {
247 }
248 if ((
self = [super
init]))
249 {
252 a[0] = left.y*right.x*(right.x - 2*left.
x)/(dx*dx) + right.
y*left.
x*left.
x/(dx*dx) - gradientleft*left.
x*right.
x/dx;
253 a[1] = 2*left.x*(left.y-right.
y)/(dx*dx) + gradientleft*(left.
x+right.
x)/dx;
254 a[2] = (right.y-left.
y)/(dx*dx) - gradientleft/dx;
255 }
256 return self;
257}
258
◆ initWithData:right:gradientleft:gradientright:
- (id) initWithData: |
|
(NSPoint) | left |
right: |
|
(NSPoint) | right |
gradientleft: |
|
(double) | gradientleft |
gradientright: |
|
(double) | gradientright |
Definition at line 39 of file OOJoystickProfile.m.
278{
279 double dx = right.x - left.
x;
280 if (dx <= 0.0)
281 {
283 }
284 if ((
self = [super
init]))
285 {
288 a[0] = (left.y*right.x*right.x*(right.x-3*left.
x) - right.
y*left.
x*left.
x*(left.
x-3*right.
x))/(dx*dx*dx) - (gradientleft*right.
x + gradientright*left.
x)*left.
x*right.
x/(dx*dx);
289 a[1] = 6*left.x*right.x*(left.y-right.
y)/(dx*dx*dx) + (gradientleft*right.
x*(right.
x+2*left.
x) + gradientright*left.
x*(left.
x+2*right.
x))/(dx*dx);
290 a[2] = 3*(left.x+right.
x)*(right.
y-left.
y)/(dx*dx*dx) - (gradientleft*(2*right.
x+left.
x)+gradientright*(2*left.
x+right.
x))/(dx*dx);
291 a[3] = 2*(left.y-right.
y)/(dx*dx*dx) + (gradientleft+gradientright)/(dx*dx);
292 }
293 return self;
294}
295
◆ initWithData:right:gradientright:
- (id) initWithData: |
|
(NSPoint) | left |
right: |
|
(NSPoint) | right |
gradientright: |
|
(double) | gradientright |
Definition at line 39 of file OOJoystickProfile.m.
260{
261 double dx = right.x - left.
x;
262 if (dx <= 0.0)
263 {
265 }
266 if ((
self = [super
init]))
267 {
270 a[0] = (left.y*right.x*right.x + right.
y*left.
x*(left.
x-2*right.
x))/(dx*dx) + gradientright*left.
x*right.
x/dx;
271 a[1] = 2*right.x*(right.y-left.
y)/(dx*dx) - gradientright*(left.
x+right.
x)/dx;
272 a[2] = (left.y-right.
y)/(dx*dx) + gradientright/dx;
273 }
274 return self;
275}
276
◆ segmentWithData:right:
+ (id) segmentWithData: |
|
(NSPoint) | left |
right: |
|
(NSPoint) | right |
◆ segmentWithData:right:gradientleft:
+ (id) segmentWithData: |
|
(NSPoint) | left |
right: |
|
(NSPoint) | right |
gradientleft: |
|
(double) | gradientleft |
◆ segmentWithData:right:gradientleft:gradientright:
+ (id) segmentWithData: |
|
(NSPoint) | left |
right: |
|
(NSPoint) | right |
gradientleft: |
|
(double) | gradientleft |
gradientright: |
|
(double) | gradientright |
◆ segmentWithData:right:gradientright:
+ (id) segmentWithData: |
|
(NSPoint) | left |
right: |
|
(NSPoint) | right |
gradientright: |
|
(double) | gradientright |
◆ start
◆ value:
- (double) value: |
|
(double) | t |
|
◆ end
◆ start
The documentation for this class was generated from the following file: