Results 1 to 10 of 15

Thread: cVec thinBasic math vector class

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    thinBasic MVPs kryton9's Avatar
    Join Date
    Nov 2006
    Location
    Naples, Florida & Duluth, Georgia
    Age
    67
    Posts
    3,869
    Rep Power
    404

    cVec thinBasic math vector class

    I made a math vector class for thinBasic. It is focused on ease of use rather than efficiency. I based a lot of the methods of the class from the Processing language, hope that it might bring more users to thinBasic. Because of name conflicts in thinBasic I had to change my method names, but the functional use is there. You can download a zip from github here:

    https://github.com/kryton9/thinBasic-cVec

    cVec.tbasicu is the include file needed to use this class.

    cVecUnitTests.tbasic is a complete unit test of this class. A good way to see the use of all the methods.
    testcVecOutMethod.tbasic is a test focused more in depth on the out method of the class.

    all tests green thanks to Primo
    cVecTests.jpg

    You don't need Git to use these files. Just follow the link and click on the following to download a zip file of all the needed code:
    Click image for larger version.
    gitUse.jpg
    Last edited by kryton9; 10-05-2017 at 12:27.
    Acer Notebook: Win 10 Home 64 Bit, Core i7-4702MQ @ 2.2Ghz, 12 GB RAM, nVidia GTX 760M and Intel HD 4600
    Raspberry Pi 3: Raspbian OS use for Home Samba Server and Test HTTP Server

Similar Threads

  1. is this example destinated for a class for converting into thinbasic?
    By largo_winch in forum Modules specific issues
    Replies: 4
    Last Post: 05-02-2013, 19:43
  2. 3D Vector Math include file.
    By D.J.Peters in forum Math scripts
    Replies: 5
    Last Post: 11-03-2010, 08:02
  3. OpenCL: Vector Add [Updated Sep 04 2011]
    By Petr Schreiber in forum OpenCL
    Replies: 14
    Last Post: 09-02-2010, 10:33
  4. Vector Graphics
    By Pipes in forum TBGL General
    Replies: 21
    Last Post: 31-08-2009, 20:44
  5. Example: passing vector or array to same function
    By e90712 in forum Math scripts
    Replies: 2
    Last Post: 19-07-2008, 00:33

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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