GithubHelp home page GithubHelp logo

garfiec / ajx-vector-math Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andrijko13/ajx-vector-math

0.0 1.0 0.0 35 KB

Class for mathematical vector/matrix classes

License: MIT License

CMake 11.61% Shell 0.78% C++ 87.61%

ajx-vector-math's Introduction

Version Build Status Contributions Welcome License

#About

The ajx namespace provides classes for all basic linear algebra vector/matrix needs. Initially designed for use by game developers

#Installing

Installing ajx and all of it's libraries is easy. Just make a build directory, and run cmake/make/make install!

mkdir build; cd build
cmake -j4 .. && make && make install

Building the project requires the system to have boost library installed, as well as a c++ compiler (g++)

##Running Tests

You can run the test suite to make sure that the library is functioning. Individual tests can be found in /binaries/tests/.

To run the full test suite, you can use make test inside the build directory

Usage

Make sure to import the headers for the classes you are using, and use away! Examples are located in /src/examples

Once you compile the library, you can run the examples from the /binaries folder

#include <ajx/vec2d.h>
#include <iostream>

int main(int argc, char **argv) {
  ajx::vec2d <int> velocity1 (10, 10);
  ajx::vec2d <int> velocity2 (-15, 30);
  ajx::vec2d <int> result = velocity1 + velocity2;
  
  std::cout << "The added velocity is X: " << result.x() << " Y: " << result.y() << std::endl;
  
  return 0;
}

ajx-vector-math's People

Contributors

andrijko13 avatar

Watchers

James Cloos 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.