You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
||1 year ago|
|gradle/wrapper||8 years ago|
|src||4 years ago|
|.gitignore||4 years ago|
|.travis.yml||7 years ago|
|LICENSE||8 years ago|
|README.md||7 years ago|
|build.gradle||1 year ago|
|gradlew||8 years ago|
|gradlew.bat||8 years ago|
|settings.gradle||4 years ago|
A Java port of the Kiwi C++ implementation of the Cassowary constraint solving algorithm
This project was created by porting Kiwi line for line to Java. The objective is to create a faster Java implementation of the Cassowary constraint solving algorithm.
The initial porting work was done in a weekend in at the end of January 2015 by Alex Birkett without a deep understanding of the Cassowary algorithm. At that time, the tests ported from the java cassowary project, did not pass. The project was forgotten about until early 2016 when yonsunCN found it and fixed it.
As of January 2016, the testes ported from java cassowary project now pass.
- Alex Birkett Initial port from Kiwi C++
- yonsunCN Fixed initial port
- Sam Twidale Multiple bug fixes
Solver solver = new Solver(); Variable x = new Variable("x"); Variable y = new Variable("y"); // x = 20 solver.addConstraint(Symbolics.equals(x, 20)); // x + 2 == y + 10 solver.addConstraint(Symbolics.equals(Symbolics.add(x,2), Symbolics.add(y, 10))); solver.updateVariables(); System.out.println("x " + x.getValue() + " y " + y.getValue()); // x == 20 // y == 12