The ultrasonic goniometer and its applications