This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Vec2Test() { | |
using namespace sparky; | |
using namespace math; | |
std::cout << "Printing Vector 2 test cases" << std::endl; | |
//test functions | |
Vec2 vector(1.0f, 2.0f); | |
std::cout << "\"" << vector << "\" expected: Vec2(1 , 2)" << std::endl; | |
vector.add(Vec2(5.0f, 4.0f)); | |
std::cout << "\"" << vector << "\" expected: Vec2(6 , 6)" << std::endl; | |
vector.divide(Vec2(6.0f, 6.0f)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Look at the README. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Created on May 8, 2013 | |
@author: Victor J. Reventos | |
Copies the preferences from the src workspace to the dest workspace. | |
If the dest workspace doesn't exist it will be created. | |
Enjoy! | |
''' |