Skip to content

vmlaker/CartesianSpace

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2013 Nov 18

This repo contains examples of how to wrap c++ objects in python. It is an
implementation of a Cartesian coordinate system built around three double 
precision floating point numbers. The space objects support vector arithmetic
by overloading the +, -, * and / operators, where * is the dot product and /
scales. There is a separate function for cross product.

With a c++ simulation model wrapped in python, the position and
velocity of a given body can easily be converted to a new coordinate
system (e.g. centered on the moon) or have calculated quantities like
the angular momentum over time plotted.

-lrm

About

C++ wrapped with python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 77.3%
  • Python 17.2%
  • Shell 3.9%
  • C 1.6%