/Users/enrico/Ricerca/develop/PINS/pins-mechatronix/LibSources/submodules/Clothoids/src/Clothoids/BaseCurve_compatibility.hxx Source File

Clothoids: /Users/enrico/Ricerca/develop/PINS/pins-mechatronix/LibSources/submodules/Clothoids/src/Clothoids/BaseCurve_compatibility.hxx Source File
Clothoids
BaseCurve_compatibility.hxx
1/*--------------------------------------------------------------------------*\
2 | |
3 | Copyright (C) 2017 |
4 | |
5 | , __ , __ |
6 | /|/ \ /|/ \ |
7 | | __/ _ ,_ | __/ _ ,_ |
8 | | \|/ / | | | | \|/ / | | | |
9 | |(__/|__/ |_/ \_/|/|(__/|__/ |_/ \_/|/ |
10 | /| /| |
11 | \| \| |
12 | |
13 | Enrico Bertolazzi |
14 | Dipartimento di Ingegneria Industriale |
15 | Universita` degli Studi di Trento |
16 | email: enrico.bertolazzi@unitn.it |
17 | |
18\*--------------------------------------------------------------------------*/
19
23
28length( real_type offs ) const
29{ return G2lib::use_ISO ? this->length_ISO(offs) : this->length_SAE(offs); }
30
40void
41bbox(
42 real_type offs,
43 real_type & xmin,
44 real_type & ymin,
45 real_type & xmax,
46 real_type & ymax
47) const {
48 if ( G2lib::use_ISO ) this->bbox_ISO( offs, xmin, ymin, xmax, ymax );
49 else this->bbox_SAE( offs, xmin, ymin, xmax, ymax );
50}
51
55real_type xBegin( real_type offs ) const
56{ return G2lib::use_ISO ? this->x_begin_ISO(offs) : this->x_begin_SAE(offs); }
57
61real_type yBegin( real_type offs ) const
62{ return G2lib::use_ISO ? this->y_begin_ISO(offs) : this->y_begin_SAE(offs); }
63
67real_type xEnd( real_type offs ) const
68{ return G2lib::use_ISO ? this->x_end_ISO(offs) : this->x_end_SAE(offs); }
69
73real_type yEnd( real_type offs ) const
74{ return G2lib::use_ISO ? this->y_end_ISO(offs) : this->y_end_SAE(offs); }
75
79real_type nx_Begin() const
80{ return G2lib::use_ISO ? this->nx_begin_ISO() : this->nx_begin_SAE(); }
81
85real_type ny_Begin() const
86{ return G2lib::use_ISO ? this->ny_begin_ISO() : this->ny_begin_SAE(); }
87
91real_type nx_End() const
92{ return G2lib::use_ISO ? this->nx_end_ISO() : this->nx_end_SAE(); }
93
97real_type ny_End() const
98{ return G2lib::use_ISO ? this->ny_end_ISO() : this->ny_end_SAE(); }
99
103real_type nx( real_type s ) const
104{ return G2lib::use_ISO ? this->nx_ISO(s) : this->nx_SAE(s); }
105
109real_type nx_D( real_type s ) const
110{ return G2lib::use_ISO ? this->nx_ISO_D(s) : this->nx_SAE_D(s); }
111
115real_type nx_DD( real_type s ) const
116{ return G2lib::use_ISO ? this->nx_ISO_DD(s) : this->nx_SAE_DD(s); }
117
121real_type nx_DDD( real_type s ) const
122{ return G2lib::use_ISO ? this->nx_ISO_DDD(s) : this->nx_SAE_DDD(s); }
123
127real_type ny( real_type s ) const
128{ return G2lib::use_ISO ? this->ny_ISO(s) : this->ny_SAE(s); }
129
133real_type ny_D( real_type s ) const
134{ return G2lib::use_ISO ? this->ny_ISO_D(s) : this->ny_SAE_D(s); }
135
139real_type ny_DD( real_type s ) const
140{ return G2lib::use_ISO ? this->ny_ISO_DD(s) : this->ny_SAE_DD(s); }
141
145real_type ny_DDD( real_type s ) const
146{ return G2lib::use_ISO ? this->ny_ISO_DDD(s) : this->ny_SAE_DDD(s); }
147
151real_type tx_Begin() const { return this->tx_begin(); }
152
156real_type ty_Begin() const { return this->ty_begin(); }
157
161real_type tx_End() const { return this->tx_end(); }
162
166real_type ty_End() const { return this->ty_end(); }
167
171real_type nx_Begin_ISO() const { return nx_begin_ISO(); }
172
176real_type ny_Begin_ISO() const { return this->ny_begin_ISO(); }
177
181real_type nx_End_ISO() const { return nx_end_ISO(); }
182
186real_type ny_End_ISO() const { return this->ny_end_ISO(); }
187
191real_type nx_Begin_SAE() const { return nx_begin_SAE(); }
192
196real_type ny_Begin_SAE() const { return ny_begin_SAE(); }
197
201real_type nx_End_SAE() const { return nx_end_SAE(); }
202
206real_type ny_End_SAE() const { return ny_end_SAE(); }
207
211void
212nor( real_type s, real_type & nx, real_type & ny ) const {
213 if ( G2lib::use_ISO ) this->nor_ISO(s,nx,ny);
214 else this->nor_SAE(s,nx,ny);
215}
216
220void
221nor_D( real_type s, real_type & nx_D, real_type & ny_D ) const {
222 if ( G2lib::use_ISO ) this->nor_ISO_D(s,nx_D,ny_D);
223 else this->nor_SAE_D(s,nx_D,ny_D);
224}
225
229void
230nor_DD( real_type s, real_type & nx_DD, real_type & ny_DD ) const {
231 if ( G2lib::use_ISO ) this->nor_ISO_DD(s,nx_DD,ny_DD);
232 else this->nor_SAE_DD(s,nx_DD,ny_DD);
233}
234
238void
239nor_DDD( real_type s, real_type & nx_DDD, real_type & ny_DDD ) const {
240 if ( G2lib::use_ISO ) this->nor_ISO_DDD(s,nx_DDD,ny_DDD);
241 else this->nor_SAE_DDD(s,nx_DDD,ny_DDD);
242}
243
254void
255evaluate(
256 real_type s,
257 real_type offs,
258 real_type & th,
259 real_type & k,
260 real_type & x,
261 real_type & y
262) const {
263 if ( G2lib::use_ISO ) this->evaluate_ISO( s, offs, th, k, x, y );
264 else this->evaluate_SAE( s, offs, th, k, x, y );
265}
266
271X( real_type s, real_type offs ) const
272{ return G2lib::use_ISO ? this->X_ISO( s, offs ) : this->X_SAE( s, offs ); }
273
278Y( real_type s, real_type offs ) const
279{ return G2lib::use_ISO ? this->Y_ISO( s, offs ) : this->Y_SAE( s, offs ); }
280
285X_D( real_type s, real_type offs ) const
286{ return G2lib::use_ISO ? this->X_ISO_D( s, offs ) : this->X_SAE_D( s, offs ); }
287
292Y_D( real_type s, real_type offs ) const
293{ return G2lib::use_ISO ? this->Y_ISO_D( s, offs ) : this->Y_SAE_D( s, offs ); }
294
299X_DD( real_type s, real_type offs ) const
300{ return G2lib::use_ISO ? this->X_ISO_DD( s, offs ) : this->X_SAE_DD( s, offs ); }
301
306Y_DD( real_type s, real_type offs ) const
307{ return G2lib::use_ISO ? this->Y_ISO_DD( s, offs ) : this->Y_SAE_DD( s, offs ); }
308
313X_DDD( real_type s, real_type offs ) const
314{ return G2lib::use_ISO ? this->X_ISO_DDD( s, offs ) : this->X_SAE_DDD( s, offs ); }
315
320Y_DDD( real_type s, real_type offs ) const
321{ return G2lib::use_ISO ? this->Y_ISO_DDD( s, offs ) : this->Y_SAE_DDD( s, offs ); }
322
331void
332eval(
333 real_type s,
334 real_type offs,
335 real_type & x,
336 real_type & y
337) const {
338 if ( G2lib::use_ISO ) this->eval_ISO( s, offs, x, y );
339 else this->eval_SAE( s, offs, x, y );
340}
341
350void
351eval_D(
352 real_type s,
353 real_type offs,
354 real_type & x_D,
355 real_type & y_D
356) const {
357 if ( G2lib::use_ISO ) this->eval_ISO_D( s, offs, x_D, y_D );
358 else this->eval_SAE_D( s, offs, x_D, y_D );
359}
360
369void
370eval_DD(
371 real_type s,
372 real_type offs,
373 real_type & x_DD,
374 real_type & y_DD
375) const {
376 if ( G2lib::use_ISO ) this->eval_ISO_DD( s, offs, x_DD, y_DD );
377 else this->eval_SAE_DD( s, offs, x_DD, y_DD );
378}
379
388void
389eval_DDD(
390 real_type s,
391 real_type offs,
392 real_type & x_DDD,
393 real_type & y_DDD
394) const {
395 if ( G2lib::use_ISO ) this->eval_ISO_DDD( s, offs, x_DDD, y_DDD );
396 else this->eval_SAE_DDD( s, offs, x_DDD, y_DDD );
397}
398
399void
400changeOrigin( real_type newx0, real_type newy0 )
401{ change_origin( newx0, newy0 ); }
402
403real_type thetaBegin() const { return this->theta_begin(); }
404real_type thetaEnd() const { return this->theta_end(); }
405real_type kappaBegin() const { return this->kappa_begin(); }
406real_type kappaEnd() const { return this->kappa_end(); }
407real_type xBegin() const { return this->x_begin(); }
408real_type yBegin() const { return this->y_begin(); }
409real_type xEnd() const { return this->x_end(); }
410real_type yEnd() const { return this->y_end(); }
411real_type xBegin_ISO( real_type offs ) const { return this->x_begin_ISO(offs); }
412real_type yBegin_ISO( real_type offs ) const { return this->y_begin_ISO(offs); }
413real_type xEnd_ISO( real_type offs ) const { return this->x_end_ISO(offs); }
414real_type yEnd_ISO( real_type offs ) const { return this->y_end_ISO(offs); }
415real_type xBegin_SAE( real_type offs ) const { return this->x_begin_SAE(offs); }
416real_type yBegin_SAE( real_type offs ) const { return this->y_begin_SAE(offs); }
417real_type xEnd_SAE( real_type offs ) const { return this->x_end_SAE(offs); }
418real_type yEnd_SAE( real_type offs ) const { return this->y_end_SAE(offs); }
419
421closestPoint_ISO(
422 real_type qx,
423 real_type qy,
424 real_type & x,
425 real_type & y,
426 real_type & s,
427 real_type & t,
428 real_type & dst
429) const {
430 return this->closest_point_ISO( qx, qy, x, y, s, t, dst );
431}
432
434closestPoint_SAE(
435 real_type qx,
436 real_type qy,
437 real_type & x,
438 real_type & y,
439 real_type & s,
440 real_type & t,
441 real_type & dst
442) const {
443 return this->closest_point_SAE( qx, qy, x, y, s, t, dst );
444}
445
447closestPoint_ISO(
448 real_type qx,
449 real_type qy,
450 real_type offs,
451 real_type & x,
452 real_type & y,
453 real_type & s,
454 real_type & t,
455 real_type & dst
456) const {
457 return this->closest_point_ISO( qx, qy, offs, x, y, s, t, dst );
458}
459
461closestPoint_SAE(
462 real_type qx,
463 real_type qy,
464 real_type offs,
465 real_type & x,
466 real_type & y,
467 real_type & s,
468 real_type & t,
469 real_type & dst
470) const {
471 return this->closest_point_SAE( qx, qy, offs, x, y, s, t, dst );
472}
473
double real_type
real type number
Definition Clothoids.hh:79
int integer
integer type number
Definition Clothoids.hh:80