Results 1 to 5 of 5

Thread: 3D math functions

  1. #1

    3D math functions

    Anyone know of place to find ready source code for the usual math functions? In need of dglOpenGL compatible matrix functions, multiplication, forming by different vectors etc. Unit i used on Delphi had most functions in asm so it won't convert well to free pascal. This would be loads of work doing from scratch...

  2. #2

    Re: 3D math functions

    Did you try the one that comes with GLScene? (VectorGeometry.pas)

  3. #3

    Re: 3D math functions

    No i think 1 came with dglOpengl

    Well GLScene one seem to be very good start but propably won't do as it is. From the basics i use vectors with 3 dimensions, not 4. This is for 1 part speed and other for memory lineup in arrays.

  4. #4

    Re: 3D math functions

    Hm, check out the TAffineVector type.

  5. #5
    PGDCE Developer de_jean_7777's Avatar
    Join Date
    Nov 2006
    Location
    Bosnia and Herzegovina (Herzegovina)
    Posts
    287

    Re: 3D math functions

    I have been working on my own set of units for vector mathematics (and other mathematics stuff) for some time. I hope you can scavange something out of it. Everything is provided in the archive. I call it the VectorMachine (or more rednecky VektorMasheeeen).

    The included vm.txt file has more details.

    http://www.megaupload.com/?d=E5IMBYTM
    Existence is pain

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •