Code Monkey home page Code Monkey logo

ansic3d's Introduction

Ansi C 3D Math Library

Build Status

Some codes are derived from GLScene project (glscene.org)

I needed a basic ansi-c 3D library for another project of mine so I started this project. I implemented my own needs within the library.

Documenting the library in README is a heavy job so instead, best documentation is the code itself. So you may find the needed information in header files.

And for the use cases, you can refer to tests/test.c

Installing

BBee Build tool is already inside the repo (https://github.com/sinanislekdemir/bbee)

To compile the library (to build/libansic3d.a):

python bbee

To install the library:

python bbee --install

To compile and run the tests

python bbee --i=test.json

Or just run to compule and install the library and run the tests.

./build.sh

Tests

$ bbee --i=test.json
Building using gcc
Collecting files
Building ./tests/test.c
Running build/test
TestCloneVector [OK]
TestAddVector [OK]
TestSubVector [OK]
TestScaleVector [OK]
TestCrossProduct [OK]
TestNormalizeVector [OK]
TestDivideVector [OK]
TestPerpendicularVector [OK]
TestRotateAroundX [OK]
TestRotateAroundY [OK]
TestRotateAroundZ [OK]
TestVectorLength [OK]
TestDotProduct [OK]
TestVectorNorm [OK]
TestVectorDistance [OK]
TestPlaceNormal [OK]
TestInitVectorList [OK]
TestPushVector [OK]
TestFreeVectorList [OK]
TestPopVector [OK]
TestRemoveLastVector [OK]
TestTrimVectorList [OK]
TestHomogeneousMatrix [OK]
TestCreateScaleMatrix [OK]
TestCreateTranslationMatrix [OK]
TestCreateScaleAndTranslationMatrix [OK]
TestCreateRotationMatrixX [OK]
TestCreateRotationMatrixY [OK]
TestCreateRotationMatrixZ [OK]
TestCreateRotationMatrix [OK]
TestMultiplyMatrix [OK]
TestVectorTransform [OK]
TestMatrixDeterminant [OK]
TestAdjointMatrix [OK]
TestScaleMatrix [OK]
TestInvertMatrix [OK]
TestTransposeMatrix [OK]
TestLookAtMatrix [OK]

Creator

sinan islekdemir | [email protected]

Note

I only compiled the code under MacOs so let me know if it works for you too.

ansic3d's People

Contributors

sinanislekdemir avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.