------------------------------------------------------------------------------
| 3126 | |
| 3127 | //------------------------------------------------------------------------------ |
| 3128 | double vtkMath::SignedAngleBetweenVectors( |
| 3129 | const double v1[3], const double v2[3], const double vn[3]) |
| 3130 | { |
| 3131 | double cross[3]; |
| 3132 | vtkMath::Cross(v1, v2, cross); |
| 3133 | double angle = atan2(vtkMath::Norm(cross), vtkMath::Dot(v1, v2)); |
| 3134 | return vtkMath::Dot(cross, vn) >= 0 ? angle : -angle; |
| 3135 | } |
| 3136 | |
| 3137 | //------------------------------------------------------------------------------ |
| 3138 | double vtkMath::GaussianAmplitude(double variance, double distanceFromMean) |