1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992
|
Wednesday, July 19th, 2004 Ron Steinke <rsteinke@w-link.net>
* 0.3.3 release.
Wednesday, June 30th, 2004 Ron Steinke <rsteinke@w-link.net>
* Erik Hjortsberg's gcc 3.4 compile fixes, part 2.
Wednesday, June 30th, 2004 Ron Steinke <rsteinke@w-link.net>
* Erik Hjortsberg's gcc 3.4 compile fixes.
2004-06-06 Al Riddoch <alriddoch@zepler.org>
* Fix devel dependencies in rpm spec.
2004-06-03 James Turner <james@worldforge.org>
* XCode project updates
Saturday, March 6th, 2004 Al Riddoch <alriddoch@zepler.org>
* wfmath/atlasconv.h: Add typedefs so the tests still work
with the 0.4 series.
Wednesday, March 3rd, 2004 James Turner <james@worldforge.org>
* Made atlasconv.h use the new Atlas::Message public typdefs, instead
of the current Element typedefs, which are becoming private.
* ProjectBuilder updates for X-Code
Wednesday, February 18th, 2004 Ron Steinke <rsteinke@w-link.net>
* Fixed 'no newline at end of file' warning for timestamp_test.cpp.
Sunday, February 15th, 2004 Ron Steinke <rsteinke@w-link.net>
* Changed the Atlas forward declaration workaround to return
a reference to Atlas::Message::Element instead of a copy.
Thursday, February 5th, 2004 Ron Steinke <rsteinke@w-link.net>
* Got the fooCorner() fix right.
* 0.3.2 release! for the last time!
Wednesday, February 4th, 2004 Ron Steinke <rsteinke@w-link.net>
* Added wfmath.spec to EXTRA_DIST to ease rpm building.
* 0.3.2 release! (no, really! this time I mean it!)
Wednesday, February 4th, 2004 Ron Steinke <rsteinke@w-link.net>
* Added a missing word to some descriptive text in wfmath.spec.
* 0.3.2 release!
Friday, January 30th, 2004 Ron Steinke <rsteinke@w-link.net>
* Changed the fooCorner() functions in Ball from {assert(false);}
to {assert(false); abort();}, per Al's comments, so they
fail properly if used when NDEBUG is defined.
Thursday, January 29th, 2004 Ron Steinke <rsteinke@w-link.net>
* Updated the AUTHORS file.
Thursday, January 29th, 2004 Ron Steinke <rsteinke@w-link.net>
* Bumped version to 0.3.2, in preparation for a release
tommorow.
Thursday, January 29th, James Turner <james@worldforge.org>
* Add a test for the timestamp/timediff code (not exhaustive
by any means)
Thursday, January 29th, 2004 Ron Steinke <rsteinke@w-link.net>
* Fixed the TimeDiff constructor from milliseconds to
set the is_valid flag (thanks James!).
Tuesday, January 27th, 2004 Ron Steinke <rsteinke@w-link.net>
* Changed the Shuffle() function to use the new random
number API instead of the old one, and use
std::vector<>::size_type instead of unsigned for
greater portability. Added a basic test to make sure
it builds and runs.
Sunday, January 18th, 2004 Ron Steinke <rsteinke@w-link.net>
* Made the Quaternion costructor from a Vector<3> (for
a rotation around that axis) 'explicit'.
Sunday, January 18th, 2004 Ron Steinke <rsteinke@w-link.net>
* Added round-off age checks to the functions where
Quaternion and RotMatrix<3> rotate each other.
* Added rotate() convienience wrappers to RotMatrix,
Quaternion and Vector for cases where rotation
is just multiplication.
Sunday, January 18th, 2004 Ron Steinke <rsteinke@w-link.net>
* wfmath/point.h, wfmath/axisbox.h, wfmath/axisbox_funcs.h,
wfmath/segment.h, wfmath/segment_funcs.h, wfmath/ball.h,
wfmath/rotbox.h, wfmath/rotbox_funcs.h, wfmath/polygon.h,
wfmath/polygon_funcs.h, wfmath/polygon.cpp: Added
Quaternion-based rotation functions and toParentCoords(),
toLocalCoords() to all shapes, in parallel to those
functions previously added to Point.
* wfmath/rotmatrix*, wfmath/quaternion*: Added functions
to let RotMatrix<3> and Quaternion rotate each other.
RotMatrix<3>::rotate(Quaternion) was needed for
Quaternion-based rotation of RotBox<3>.
Sunday, January 18th, 2004 Ron Steinke <rsteinke@w-link.net>
* wfmath/MersenneTwister.h, wfmath/const.h, wfmath/miniball_funcs.h:
Replace ANSI C headers #include <foo.h> with #include <cfoo>.
* wfmath/stream.h: Removed commented-out sstream #include.
* wfmath/timestamp.*: Moved winsock.h #include into the .cpp file,
moved timeval class declaration for win32 inside the TimeStamp
class.
Sunday, January 11th, 2004 Ron Steinke <rsteinke@w-link.net>
* wfmath/timestamp.h: Pull winsock #include outside of
WFMath namespace.
Sunday, December 21st, 2003 Ron Steinke <rsteinke@w-link.net>
* wfmath/timestamp.h: Pull in winsock2.h instead of winsock.h
under win32.
Friday, December 19th, 2003 Al Riddoch <alriddoch@zepler.org>
* Remove Serial from rpm spec as it is not required, and messes up
deps.
Saturday, December 6th, 2003 Ron Steinke <rsteinke@w-link.net>
* wfmath/polygon_intersect.cpp: Got rid of the only
new/delete calls in the whole library, as the
object in question could just as well be declared
on the stack.
Saturday, December 6th, 2003 Ron Steinke <rsteinke@w-link.net>
* wfmath/timestamp.cpp: Added James' patch to make
valgrind happy.
Thursday, November 27th, 2003 Ron Steinke <rsteinke@w-link.net>
* Only one of the Point/Quaterion and Point/Matrix coordinate
transformation functions can or needs to have a default
rotation argument.
Thursday, November 27th, 2003 Ron Steinke <rsteinke@w-link.net>
* The inverse of a Quaternion is q.inverse(), not -q.
Thursday, November 27th, 2003 Ron Steinke <rsteinke@w-link.net>
* Added local/parent coordinate transformation functions
and quaternion based 3D rotations to Point, still need to
add these to the rest of the shape classes.
Sunday, October 26th, 2003 Ron Steinke <rsteinke@w-link.net>
* wfmath/quaternion.cpp, wfmath/atlasconv.h: Set validity
of vector component of Quaternion in three other places
we'd missed.
* wfmath/rotmatrix*, wfmath/quaternion*: Added roundoff aging
code. As we do many floating point calculations, RotMatrix
and Quaternion will tend to drift from their respective
normalizations due to roundoff error. The new code adds
an m_age, which keeps track of how many computations ago
they were normalized, and automatically renomalizes them
after a given number of computations. Because we know that
they're still close to being normalized, the renormalization
code is linearized, so it's not too horrible as a speed hit.
Sunday, October 26th, 2003 Al Riddoch <alriddoch@zepler.org>
* wfmath/quaternion.cpp: Ensure vector component is valid when
constructing a valid quaternion.
Sunday, September 21st, 2003 Ron Steinke <rsteinke@w-link.net>
* Some cleanups to int_to_string.cpp
* Added some macros to const.h for future
normalization-aging checks in RotMatrix
and Quaterion.
* 0.3.1 release
Monday, August 25nd, 2003 Ron Steinke <rsteinke@w-link.net>
* Moved hash() function out of MersenneTwister.h to
randgen.cpp, to get time_t and clock_t out of the
header.
Friday, August 22nd, 2003 Ron Steinke <rsteinke@w-link.net>
* Forgot to make deprecated IRand(), Drand() (which
now wrap Mersenne Twister) inline. Now fixed.
Tuesday, August 19th, 2003 Al Riddoch <alriddoch@zepler.org>
* Remove obsolete file wfmath.m4.
Tuesday, August 19th, 2003 Al Riddoch <alriddoch@zepler.org>
* Updated spec.
Sunday, August 17th, 2003 Ron Steinke <rsteinke@w-link.net>
* Moved config.h include after timestamp.h include
in timestamp.cpp, since it's only the unistd.h include
that's causing the FreeBSD problem.
Sunday, August 17th, 2003 Al Riddoch <alriddoch@zepler.org>
* wfmath/timestamp.cpp: Moved include of timestamp.h
to workaround problem on FreeBSD.
* Makefile.am: Remove obsolete .pbxproj from DIST list.
Saturday, August 16th, 2003 James Turner <james@worldforge.org>
* Update ProjectBuilder files. Move along, nothing to see
here, unless you're on OS-X. If you are, please let me
know if these are useful.
Thursday, August 14th, 2003 Ron Steinke <rsteinke@w-link.net>
* Fixed typos in a #error message in atlasconv.h.
* Changed atlas/Makefile.am to build the tests with 0.3.
* 0.3.0 release!
Friday, August 8th, 2003 Ron Steinke <rsteinke@w-link.net>
* Changed to using Mersenne Twister for random number
generation. Anyone who wants the old interface
should #define WFMATH_USE_OLD_RAND.
* Dropped old, deprecated intersect interface version.
This version of the API was used briefly in stage
at one point, and that was at least a year ago.
Friday, August 8th, 2003 Ron Steinke <rsteinke@w-link.net>
* Forgot to change to 0.3 in wfmath/Makefile.am, fixed that.
* Got rid of support for old 'list of lists' encoding
for AxisBox in atlasconv.h. Also got rid of a bunch
of push_back() calls by predeclaring the size of
Atlas::Message::Foo::ListType instances.
Friday, August 8th, 2003 Ron Steinke <rsteinke@w-link.net>
* Updated version number to 0.3 in preparation for doing
a release next week.
* Got rid of wfmath-config, we won't support it in 0.3.
* Added instring_test, which tests both IntToString() and IRand().
* Got rid of operator<() in all classes except for those
in timestamp.*. It was only there 'so we could use wfmath
classes as keys in std::map'. However, since equality
isn't transitive (a == b && b == c does not imply a == c),
this has some problems. If you really want a map of spatial
objects, you probably want something like stage's OctTree
instead.
* Fixed IRand() to deal with the fact that UINT_MAX is often
larger than RAND_MAX.
* Added a few inline IntToString() cases to make sure short
and int get cast to the appropriate (signed or unsigned)
version of long.
* Added int_to_string.h to wfmath.h.
Monday, August 4th, 2003 Ron Steinke <rsteinke@w-link.net>
* Added IntToString() utility function, because I'm tired of
writing the same code in a dozen different applications.
Tuesday, July 22nd, 2003 Ron Steinke <rsteinke@w-link.net>
* More poly-atlas tweaks. Forgot to inline some wrapper
functions, had to add a template AtlasInType constructor
to take advantange of the fact that the Atlas::Message::Foo
constructor is overloaded (needed that to build Eris).
Tuesday, July 22nd, 2003 Ron Steinke <rsteinke@w-link.net>
* Changes to support both Atlas-C++ 0.4 and 0.6 with atlasconv.h
* Changed needless 'const CoordType' for pass-by-value
in some Quaternion function calls to 'CoordType'
Tuesday, July 22nd, 2003 Ron Steinke <rsteinke@w-link.net>
* Fixed a couple more m_valid bugs.
Monday, July 21st, 2003 Al Riddoch <alriddoch@zepler.org>
* wfmath/atlasconv.h: Use AsNum() rather than AsFloat() so that
integers don't cause exceptions.
* wfmath/quaternion.h: Fix operator=() so it copies m_valid to
the assignee.
Thursday, July 3rd, 2003 Al Riddoch <alriddoch@zepler.org>
* Update rpm spec to be cleaner, and make the technical sections
more generic.
Friday, June 27th, 2003 Ron Steinke <rsteinke@w-link.net>
* Did a Quaternion-specific implementation of rotation(from, to)
instead of just calling the RotMatrix version and
converting. Also changed RotMatrix<2>::rotation(from, to)
not to throw ColinearVectors in the case where the
inputs are antiparallel, since in 2d there's only
one possible plane of rotation and we can give
a canonical answer.
Tuesday, June 24th, 2003 Ron Steinke <rsteinke@w-link.net>
* Fixed a bug in RotMatrix::rotation(from, to),
added a Quaternion wrapper for the same function
Tuesday, June 3rd, 2003 Ron Steinke <rsteinke@w-link.net>
* Instantiated Intersect(), Contains() functions
and stream operators for dim=2,3 in .cpp files
* Made most template functions inline, bumped
the interface number in case this broke
compatibility
Tuesday, May 27th, 2003 Ron Steinke <rsteinke@w-link.net>
* Added elements() const accessors to the underlying
arrays in Vector and Point.
Sunday, May 4th, 2003 Ron Steinke <rsteinke@w-link.net>
* Toned down chuck's more explicit message for the
failure of the configure check for Atlas. Anyone
who doesn't know what Atlas is isn't going to care
about the Atlas::Message::Object encoding code
stubs, and it's best not to make them think they
need to download another library if they don't have to.
Thursday, May 1st, 2003 Ron Steinke <rsteinke@w-link.net>
* Changed configure.in to configure.ac, since
it now contains code which is incompatible
with autoconf 2.13
Thursday, April 24th, 2003 Al Riddoch <alriddoch@zepler.org>
* Add news item, and fix rpm spec.
* Release 0.2.11, API 0.2, interface version 1.
Wednesday, April 23rd, 2003 Al Riddoch <alriddoch@zepler.org>
* Update spec file, and set the interface version ready for
release.
Wednesday, April 23rd, 2003 James Turner <james@worldforge.org>
* Updated configure.in to use pkg-config to detect Atlas-C++,
removing the need for AM_PATH_ATLAS in one more place.
* Wrapped the sstream / strstream include tests in an
AC_LANG(C++) section, which they need in order to detect
correctly, at least on OS-X.
Tuesday, April 22nd, 2003 James Turner <james@worldforge.org>
* Added the ProjectBuilder files to EXTRA_DIST in
anticipation of a new stable release.
Tuesday, April 22nd, 2003 Ron Steinke <rsteinke@w-link.net>
* Added trivial RotMatrix<>::parity() function.
Thursday, April 17th, 2003 James Turner <james@worldforge.org>
* Add support for the Atlas tests to the ProjectBuilder files
(you'll need to update the reference to Atlas.framework to
whereever you built it). Again, all the tests pass.
Wednesday, April 16th, 2003 James Turner <james@worldforge.org>
* Updated the ProjectBuilder files, including targets for some of
the test cases, which all pass with flying colours.
Friday, January 31, 2003 Al Riddoch <alriddoch@zepler.org>
* Convert to using pkg-config
Saturday, January 11, 2003 James Turner <james@worldforge.org>
* Changed 'libtool' to 'libtoolize' in autogen.sh so
an autoXXXX build works under Mac OS-X.
* Added project builder files to produce a WFMath framework
If you use this or have any comments, please let me know.
Monday, November 4, 2002 Ron Steinke <rsteinke@w-link.net>
* Added isValid() member functions to TimeStamp, TimeDiff
(the flags were already there)
* Improved TimeStamp, TimeDiff documentation
Saturday, November 2, 2002 Ron Steinke <rsteinke@w-link.net>
* Added documentation. With the exception of those associated
with Polygon, all API functions should now be documented.
Saturday, November 2, 2002 Al Riddoch <alriddoch@zepler.org>
* Add rpm spec.
Friday, November 1, 2002 Ron Steinke <rsteinke@w-link.net>
* Added Doxyfile.in to CVS, did some work towards docs
Wednesday, October 30, 2002 Michael Koch <konqueror@gmx.de>
* Added manpage for wfmath-config.
Wednesday, October 23, 2002 Ron Steinke <rsteinke@w-link.net>
* Portability fix. Apparently debian on sparc uses
int instead of long for the usec field of struct timeval.
Monday, October 10, 2002 Ron Steinke <rsteinke@w-link.net>
* Changed operator==() for quaternions to regard two
quaternions as equal iff they produce the same
3x3 rotation matrix. This means q == -q is true.
* Added a Shuffle() function which randomizes the order
of elements contained in a std::vector.
* Doc updates
* Bumped version number to 0.2.10
Monday, September 2, 2002 Ron Steinke <rsteinke@w-link.net>
* Bumped version number to 0.2.9
Friday, August 2, 2002 Ron Steinke <rsteinke@w-link.net>
* Fixed a bug involving the machine dependence of the
behavior of % for negative numbers
Monday, July 22, 2002 Ron Steinke <rsteinke@w-link.net>
* Wraped a declaration of a variable which is only used in
an assert() in #ifndef NDEBUG
Saturday, June 23, 2002 Ron Steinke <rsteinke@w-link.net>
* Added timestamp class from Eris
* Added random number generators (really wrappers for rand())
* Added Quaternion::inverse()
Saturday, May 11, 2002 Ron Steinke <rsteinke@w-link.net>
* Bumped version number to 0.2.8, due to the sign convention changes
Friday, May 10, 2002 Ron Steinke <rsteinke@w-link.net>
* Added an isValid() flag to all classes. Point and Vector
also have a setValid() function, since you can assign
values directly to the array elements.
* Switched _Poly2Orient to use the Point and Vector isValid()
flags, rather than having its own flags.
Friday, May 10, 2002 Ron Steinke <rsteinke@w-link.net>
* Switched sign convention for quaternions to match
the more sensible convention used by cyphesis.
This fixes a bug with wfmath and cyphesis miscommunicating
about orientations over the network, but introduces
a similar problem with older versions of wfmath.
Everyone is urged to upgrade wfmath.
Friday, April 26, 2002 Ron Steinke <rsteinke@w-link.net>
* Added WFMATH_DEPRECATE_OLD_INTERSECT flag to build
without the old intersect API. Fixed wfmath to build
with the old API removed.
Friday, April 26, 2002 Ron Steinke <rsteinke@w-link.net>
* Bumped version number for 0.2.7 release
Sunday, April 21, 2002 Ron Steinke <rsteinke@w-link.net>
* Changed format sent by AxisBox<>::toAtlas() for better
network optimization
Wednesday, April 9, 2002 Ron Steinke <rsteinke@w-link.net>
* The eris-support-on-msvc changes now work
Wednesday, April 9, 2002 Ron Steinke <rsteinke@w-link.net>
* Hopefully have enough of wfmath working on msvc now to support eris
Tuesday, April 9, 2002 Ron Steinke <rsteinke@w-link.net>
* (Continued work on MSVC++ workarounds).7
Tuesday, April 9, 2002 Ron Steinke <rsteinke@w-link.net>
* (Continued work on MSVC++ workarounds).6
Tuesday, April 9, 2002 Ron Steinke <rsteinke@w-link.net>
* (Continued work on MSVC++ workarounds).5
Tuesday, April 9, 2002 Ron Steinke <rsteinke@w-link.net>
* (Continued work on MSVC++ workarounds).4
Tuesday, April 9, 2002 Ron Steinke <rsteinke@w-link.net>
* (Continued work on MSVC++ workarounds).3
Tuesday, April 9, 2002 Ron Steinke <rsteinke@w-link.net>
* (Continued work on MSVC++ workarounds).2
Tuesday, April 9, 2002 Ron Steinke <rsteinke@w-link.net>
* Continued work on MSVC++ workarounds
Tuesday, April 9, 2002 Ron Steinke <rsteinke@w-link.net>
* Started adding workarounds to compile with MSVC++
* Started adding doxygen docs
Friday, March 24, 2002 Ron Steinke <rsteinke@w-link.net>
* Tweaked the syntax of the new Parallel() function slightly
Thursday, March 23, 2002 Ron Steinke <rsteinke@w-link.net>
* Finished Intersect(Polygon, Polygon). Now I've just got to
test all those intersection functions
* Added Parallel() and Perpendicular() functions to compare the
orientation of two vectors
* Incremented version number to 0.2.6
Tuesday, March 23, 2002 Ron Steinke <rsteinke@w-link.net>
* Fixed bug with declaring the default value of the "proper"
argument of the intersection functions twice
* Moved the function definitions for intersection-oriented
members of _Poly2Orient from polygon_funcs.h into
polygon_intersect.h
* Wrote definitions for Contains(Polygon, AxisBox),
Contains(Polygon, RotBox), and Contains(Polygon, Polygon).
Got most of Intersect(Polygon, Polygon) done, except
for the case where the two planes containing the polygons
intersect in a line (the standard case in 3d)
Thursday, March 21, 2002 Ron Steinke <rsteinke@w-link.net>
* Fixed Polygon<> intersection functions with AxisBox<> and
RotBox<> in polygon_intersect.h
* Replaced separate Intersect() and IntersectProper() functions
with a "bool proper" argument to Intersect(), did the same
for Contains(). For backwards compatibility, make the "proper"
argument default to false, and wrote generic IntersectProper()
and ContainsProper() templates to call Intersect() and Contains()
with proper = true (keep them? deprecate them? which API is better?).
Tuesday, March 12, 2002 Ron Steinke <rsteinke@w-link.net>
* Added a default value of 1.0 for the norm in Vector::normalize()
* Added a virtual destructor to the exception defined in atlasconv.h
* Fixed a terminate-the-loop-proberly bug in probability.cpp
(replaced DBL_MIN by DBL_EPSILON)
* Got test functions to compile with gcc-3.0
Saturday, March 9, 2002 Dan Tomalesky <grim@xynesis.com>
* Added acinclude.m4 for atlas so people without atlas can still
autogen.sh and configure will give warning instead of getting
bizarre macro missing error for atlas when atlas is not installed
Thursday, March 7, 2002 Ron Steinke <rsteinke@w-link.net>
* Fixed error in configure check for sstream vs. strstream
Wednesday, March 6, 2002 Ron Steinke <rsteinke@w-link.net>
* Merged in Grimicus' patch to add wfmath-config
Wednesday, March 6, 2002 Ron Steinke <rsteinke@w-link.net>
* Redid sstream vs. strstream compatibility code
Wednesday, March 6, 2002 Ron Steinke <rsteinke@w-link.net>
* Got rid of stupid "set fail bit" on parse errors for
operator>>(), it now throws instead
* Added configure check for sstream vs. strstream,
compatibility code
Monday, March 04, 2002 Al Riddoch <alriddoch@zepler.org>
* wfmath/error.h: Added destructor with throw(); to exception class.
* wfmath/polygon.h: Removed trailing comma from enumeration.
* wfmath/polygon.h, wfmath/stream.h: Fixed std:: namespace issues,
and made typenames explicit.
Wednesday, February 27, 2002 Ron Steinke <rsteinke@w-link.net>
* Commented out horribly broken intersection functions
with AxisBox and RotBox in polygon_intersect.h
Wednesday, February 27, 2002 Ron Steinke <rsteinke@w-link.net>
* Autogen.sh cleanups
Tuesday, February 26, 2002 Ron Steinke <rsteinke@w-link.net>
* Bump version number to 0.2.5, so we can have an official
version needed by the stage patches.
Monday, February 25, 2002 Ron Steinke <rsteinke@w-link.net>
* Added rotation() functions to RotMatrix<3> and Quaternion
which take a single Vector<3> as argument (as opposed to
a vector for the rotation axis and an angle), and determine
the rotation angle from the length of the vector. This
is nice for things like the rotation generated by
(angular velocity) * dT, since it handles the zero-length
axis case cleanly, and avoids an extra call to sqrt().
* Fixed an error in atlasconv.h, where specializations
of AxisBox<>::fromAtlas() to particular dimensions
weren't marked as inline
Friday, February 22, 2002 Ron Steinke <rsteinke@w-link.net>
* Broke the Polygon<> intersection functions out of
polygon_funcs.h and polygon.cpp into the separate
files polygon_intersect.h and polygon_intersect.cpp
* Moved the implementations of the boundingBox() and
boundingSphere() functions in Point out of point_funcs.h
into axisbox_funcs.h and ball_funcs.h. This lets me
remove the include dependence of Point on AxisBox and Ball.
* Fixed up list of files included in wfmath.h. It now
includes everything but atlasconv.h, which is intentionally
excluded.
Wednesday, February 20, 2002 Ron Steinke <rsteinke@w-link.net>
* Fixed RotBox to match the new sense of RotMatrix<>
rotation, still need to look at its interaction
with Polygon<> to get that right
* Wrote Intersect(RotBox, AxisBox) for 2d, 3d
* Removed a needless <iostream> dependency from atlasconv.h
* Bump version number to 0.2.4
Sunday, February 17, 2002 Ron Steinke <rsteinke@w-link.net>
* Some doc fixes
* Added a #warning about using the Polygon<> Intersect()
and Contains() functions
Thursday, February 14, 2002 Ron Steinke <rsteinke@w-link.net>
* Missed a change in rotation sense in Vector<3>::rotate(const Quaterion&),
fixed now
Thursday, February 14, 2002 Ron Steinke <rsteinke@w-link.net>
* Added comments to many assert()'s
* Switched the sense of rotation in RotMatrix<> and Quaternion
to be compatible with OpenGL and the rest of Worldforge. Also
used this as an excuse to scrap all the Euler angle stuff,
since: 1) with different axis conventions floating around, it's
very confusing, and 2) I have yet to see someone try to use
it in the case where it is the correct solution
Tuesday, February 12, 2002 Ron Steinke <rsteinke@w-link.net>
* Changed Point<>:origin() to Point<>::setToOrigin()
* Added assert() checks on array indices passed to
many functions
Tuesday, February 12, 2002 Ron Steinke <rsteinke@w-link.net>
* Added Equal() template to call foo->isEqualTo().
* Replaced "const CoordType&" with CoordType everywhere it
was used.
* Got rid of scaleEpsilon member function in Point<> in favor
of calling _ScaleEpsilon directly, minimized use of
_scaleEpsilon member function in Vector<>
* Improved efficiency of some member functions in Segment<>
* Got rid of <iostream> in wrapped_array.h, got rid of
MINIBALL_NO_STD_NAMESPACE test on whether to include
<list> or <list.h> and <cassert> or <assert.h> (since
we're including them as <list> and <assert.h> elsewhere),
got rid of miniball_config.h
Friday, February 1, 2002 Ron Steinke <rsteinke@w-link.net>
* Changed IsFloatEqual() to Equal(), removed FloatAdd()
and FloatSubtract(), vastly improved precision checks
for round-off error. The intersection functions still
need to be audited to make sure they're handling it
right.
* API change, increment version to 0.2.3
Monday, January 28, 2002 Ron Steinke <rsteinke@w-link.net>
* Cleanups to const.h, const.cpp suggested by Jesse Jones
in the code review, and associated repurcussions to the
rest of the codebase.
Friday, January 25, 2002 Ron Steinke <rsteinke@w-link.net>
* Some efficiency improvements and generalizations to the
backend of the probability functions
* Wrote Polygon<3> intersections with AxisBox<3> and RotBox<3>
Thursday, January 24, 2002 Ron Steinke <rsteinke@w-link.net>
* Karsten's Makefile.am fixes for srcdir != builddir
* New probability distribution functions, Gaussian
and Poisson distributions
* Increment version to 0.2.2
Tuesday, January 22, 2002 Ron Steinke <rsteinke@w-link.net>
* Changed namespace from WF::Math to WFMath
* Changed fromAtlas() to throw an exception instead of
returning bool, added constructors from Atlas::Message::Object
to appropriate types
* Incremented version number to 0.2.1, since there were API changes
and other people are starting to care about dependencies on this
library; there'll probably be a lot of 0.2 versions
Tuesday, January 22, 2002 Ron Steinke <rsteinke@w-link.net>
* Changed the atlas functions for Quaternion and AxisBox<>
to conform to atlas specs, got rid of atlas functions which
still used string conversion
* Fixed Contains(Polygon<2>, Segment<2>) and
Contains(Polygon<2>, Polygon<2>) for endpoint intersection;
commented out Intersect(RotBox<>, AxisBox<>) and
IntersectProper(RotBox<>, AxisBox<>) because I'm
pretty sure the algorithm's wrong
* Added another rotation() function to RotMatrix<>, this
one constructs the rotation necessary to rotate one vector
into another
* Got versioning on library build working correctly
* Changed version to 0.2.0, implementation of remaining
Polygon<> intersection routines delayed until a later version
Sunday, January 20, 2002 Ron Steinke <rsteinke@w-link.net>
* Wrote all the Polygon<2> intersection functions, and
about half of the general Polygon<> intersection functions;
a few of the 2d functions still need more work
* Changed intersect_test back to shape_test; decided one
test program was sufficient for all of AxisBox<>, Ball<>,
Segment<>, and RotBox<>
* Wrote test code for Polygon<> to call the generic tests;
added the generic tests to shape_test; wrote fairly complete
test code for Quaternion
* Changed from FromAtlas() and ToAtlas() functions to fromAtlas()
and toAtlas() member functions; changed Vector<> and Point<>
from sending string objects to atlas to sending lists, so
we're more compatible with the getPos() and getVelocity()
methods of Atlas::Objects::Entity::RootEntityData
* Upped version number to 0.1.9. The library now implements
the functionality in stage/math, plus the mathematical
parts of coal and eris. Will go to 0.2 when the polygon
intersect functions are done, and the unit tests are
more complete
Tuesday, January 15, 2002 Ron Steinke <rsteinke@w-link.net>
* Cleaned up Euler angle stuff in RotMatrix<> and Quaternion,
changed everything to z-y-z convention
* Moved template specialization declarations from vector.h
to vector_funcs.h
* Made Vector<> and Point<> mathematical operators all friends
instead of members, to allow friendship for mathematical
operators which take mixed types
Friday, January 11, 2002 Ron Steinke <rsteinke@w-link.net>
* Added Quaternion class, based on code from eris
* Renamed matrix.h, matrix_funcs.h, matrix.cpp, matrix_test.cpp
to rotmatrix.h, rotmatrix_funcs.h, rotmatrix.cpp, rotmatrix_test.cpp;
this matches the name of the class, and it's best to have the
matrix.h slot available in case we need it later. Need to do
this now before everyone starts using the library
Wednesday, January 9, 2002 Ron Steinke <rsteinke@w-link.net>
* Added BoundingBox(), BoundingSphere() functions for a
container of points. The BoundingSphere() function
uses the (GPL'd) miniball code of Bernd Gaertner
<http://www.inf.ethz.ch/personal/gaertner>
* Moved the implementations of operator<<() and operator>>()
for Polygon<2> out of stream.h and into stream.cpp, fixing
a linker error for any file which included stream.h (oops).
Wednesday, January 9, 2002 Ron Steinke <rsteinke@w-link.net>
* Started on Polygon<> class
* Wrote some test functions for the generic
part of the class interface (operator=(), isEqualTo(), etc.)
and the generic shape interface (getCorner(), boundingBox(), etc.)
* Added Midpoint() function in point.h
* Cleaned up operator<() to check !IsFloatEqual()
when comparing variables of type CoordType
* Added autogen.sh
Friday, January 4, 2002 Ron Steinke <rsteinke@w-link.net>
* Got atlas_test working
Thursday, January 3, 2002 Ron Steinke <rsteinke@w-link.net>
* Changed Barycenter() to take a container of Point<>
instead of an array, added BoundingBox() for a
container of AxisBox<>
* Optimized special cases in AxisBox::getCorner() and
RotBox::getCorner(), got rid of AxisBox::lowCorner()
and AxisBox::highCorner()
* Extended RotMatrix<> to allow for mirror image flips
in addition to rotations, added mirror() functions to
both RotMatrix<> and Vector<>
* Removed foolish const from return value of
RotMatrix<>::rotation()
* Wrote better member accessors for most shapes (there's
no reason not to have direct access to the members in
anything but AxisBox<>)
* Inlined some of the simpler class member functions
* Moved atlasconv.h from atlas/ into wfmath/, since we don't
need Atlas to install it, just to build the test code
Monday, December 31, 2001 Ron Steinke <rsteinke@w-link.net>
* Added boundingSphere(), boundingSphereSloppy() to all
the shapes
* Wrote FloatMin(), FloatMax(), and FloatClamp(). This
let me remove std::min() and std::max(), and with
them the dependency on <algorithm>
* Cleaned up the inclusion of outside headers
* Replaced double with CoordType everywhere, with the
exception of the precision/tolerance/epsilon arguments
of float comparison functions and the intenals of
IsFloatEqual()
* Switched CoordType from double to float. This puts
the library precision at about 3e-6 (on my machine),
close to the precision of the strings being passed by
ToAtlas() and FromAtlas()
* Replaced fromStream() with operator>>(), using fail()
flag to indicate a bad parse
* Upped the version number from 0.0.1 to 0.1.0, as
the shape API appears to be settling down, and
it sure doesn't feel like 0.0 anymore
Monday, December 31, 2001 Ron Steinke <rsteinke@w-link.net>
* Cleaned up string and stream stuff, classes only need
to include <iosfwd>, everything else is in stream.h/stream.cpp,
removed stringconv.h/stringconv.cpp
Sunday, December 30, 2001 Ron Steinke <rsteinke@w-link.net>
* Finished the RotBox<> intersection functions
* Cleaned up use of namespaces in *.cpp files
* Added to the test code
* Miscelaneous bug fixes
Saturday, December 29, 2001 Ron Steinke <rsteinke@w-link.net>
* Fixed an error in the README
Saturday, December 29, 2001 Ron Steinke <rsteinke@w-link.net>
* Wrote some documentation, cleaned up the little that was
already there.
Saturday, December 29, 2001 Ron Steinke <rsteinke@w-link.net>
* Removed some unnecessary template specifications, changed
Vector<len> to Vector<dim> and RotMatrix<size> to RotMatrix<dim>
for cross class consistency in the name of the template parameter
* Removed the base Shape<> class, leaving a bunch of simple classes
for basic shapes which possess a common interface
* Changed test code to use toString() method directly rather than
through operator<<()
* Changed ToAtlas() and FromAtlas() to use toString() and fromString(),
eliminating the need for a separately compiled atlas conversion
library
* Added the shape interface functions to Point<>
* Replaced the symlinks to COPYING and INSTALL files added by automake
with the files themselves. This should hopefully let me get them
into CVS.
* More work on intersection functions
Tuesday, December 18, 2001 Ron Steinke <rsteinke@w-link.net>
* Some cleanup on RotMatrix<>::setVals() backend, Atlas conversion
functions
* Added Ball<>, Segment<>, RotBox<> classes (not all RotBox<>
intersection functions written yet)
Monday, December 17, 2001 Ron Steinke <rsteinke@w-link.net>
* Wrote Shape<> base class
* Wrote AxisBox<> class
* Cleaned up header file naming convention, so foo_funcs.h is
always the function templates for the class in foo.h
Friday, December 14, 2001 Ron Steinke <rsteinke@w-link.net>
* .cvsignore fixes
* Rearranged the ordering of function declarations in the
classes in an attempt at a cross-class standard, added
some bits I'd missed
* Added polar, spherical coordinate conversions to Point<> and Vector<>
Thursday, December 13, 2001 Ron Steinke <rsteinke@w-link.net>
* Added setVals() method to Matrix<>
* Added operator>> for Vector<>, Matrix<>, Point<> to give
string read capability, added stream_funcs.cpp
* Added toString() and fromString() for Vector<>, Matrix<>, Point<>,
changed operator<< to use toString(), removed operator>>
Wednesday, December 12, 2001 Ron Steinke <rsteinke@w-link.net>
* Created atlas_funcs.cpp, wrote GetAtlasDoubleList() and
SetAtlasDoubleList() to handle most of the Atlas
interface work
* Got a test for Atlas into configure.in
* First CVS upload
` * Copied the CoalCoord class in as Point<>, moved CoordType
and IsFloatEqual() into const.h, const.cpp
* Added FloatAdd() and FloatSubtract() to handle numbers
whose sum/difference is (nearly) zero
* Modified Vector<> and Matrix<> to use CoordType
Tuesday, December 11, 2001 Ron Steinke <rsteinke@w-link.net>
* Got test functions working with RotMatrix<>
* Created atlas_funcs.h to hold Atlas interface code,
wrote ToAtlas() and FromAtlas() for Vector<> and
Matrix<>
Monday, December 10, 2001 Ron Steinke <rsteinke@w-link.net>
* After coversation with Rakshasa about how matrices are actually
being used in stage, replaced Matrix<> with RotMatrix<>
Friday, December 7, 2001 Ron Steinke <rsteinke@w-link.net>
* Created some tests in matrix_test
* Added GPL information to all the source files
Thursday, December 6, 2001 Ron Steinke <rsteinke@w-link.net>
* Added more tests to vector_test
* Implemented sloppyMag and associated functions
for Vector<2>, Vector<3>
* Added a script, bc_sloppy_mag_3, to calculate some constants
for the Vector<3> implementation of sloppyMag
* Got rid of RowVector<> and ColumnVector<> classes,
added rowSet() and columnSet() to Matrix<>
Wednesday, December 5, 2001 Ron Steinke <rsteinke@w-link.net>
* First ChangeLog entry
* Autoconf is working, and the Vector<> and Matrix<> class compile
* Got the README, AUTHORS, and TODO files written
* Changed #include "foo.h" to #include <wfmath/foo.h> in
the header files
* Added const.h
* Created vector_test.cpp, matrix_test.cpp, started work on
vector_test
|