Acme-MITHALDU-XSGrabBag
view release on metacpan or search on metacpan
lib/Acme/MITHALDU/XSGrabBag.pm view on Meta::CPAN
L<Microidium|https://github.com/wchristian/Microidium>.
=head1 FUNCTIONS
=head2 my $hash = mix( $a, $b, $c )
Takes 3 x 32 bits of data as integers, mixes them, combining all 96 bits of
input to generate a pseudo-random hash returned as a 32 bit integer.
Original implementation by
L<Bob Jenkins|http://web.archive.org/web/20071224045401/http://www.burtleburtle.net/bob/c/lookup2.c>.
=head2 my $deg = deg2rad( $rad )
32 bit degree to radian conversion, dirty, but fast.
=head2 my $rad = rad2deg( $deg )
32 bit radian to degree conversion, dirty, but fast.
=head2 my $dot = dot2_product( $xa, $ya, $xb, $yb )
( run in 2.026 seconds using v1.01-cache-2.11-cpan-5837b0d9d2c )