Fix check for quadratic curve by using the right coefficient (a instead of d), and checking with tolerance.
Fix check for quadratic curve by using the right coefficient (a instead of d), and checking with tolerance.

NHQ/paper,NHQ/paper