diff options
author | 積丹尼 Dan Jacobson <jidanni@jidanni.org> | 2023-02-19 10:29:25 +0800 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2023-02-19 13:11:15 -0700 |
commit | 386638a2b4294c7af449dcfdf670df85dedbd92a (patch) | |
tree | 45a36bbc710685a3915b2465c70d566956ef1a93 | |
parent | d6a7165bd44b5bdf2dc544680b8f167b6ad3351f (diff) | |
download | perl-386638a2b4294c7af449dcfdf670df85dedbd92a.tar.gz |
Update Trig.pm
Document $way default.
Fix for #20721.
-rw-r--r-- | dist/Math-Complex/lib/Math/Trig.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dist/Math-Complex/lib/Math/Trig.pm b/dist/Math-Complex/lib/Math/Trig.pm index 7370841506..fbcb973259 100644 --- a/dist/Math-Complex/lib/Math/Trig.pm +++ b/dist/Math-Complex/lib/Math/Trig.pm @@ -623,7 +623,8 @@ circle arc through the starting point ($theta0, $phi0) and the end point ($theta1, $phi1) relative to the distance from the starting point to the end point. So $way = 0 gives the starting point, $way = 1 gives the end point, $way < 0 gives a point "behind" the starting -point, and $way > 1 gives a point beyond the end point. +point, and $way > 1 gives a point beyond the end point. $way defaults +to 0.5 if not given. Note that antipodal points (where their distance is I<pi> radians) do not have unique waypoints between them, and therefore C<undef> is |