--
You received this message because you are subscribed to the Google Groups "overconstrained" group.
To unsubscribe from this group and stop receiving emails from it, send an email to overconstrain...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
If one of the implementors of the Apple Cocoa autolayout constraint solver is listening, maybe you can give me some pointers.
I'm developing a Mac OSX dynamic geometry application that needs a constraint solver to track constraints like distance, tangency, and intersection between the geometric objects.
let engine = Engine()
let a = LPExpression.Var("a")
let b = LPExpression.Var("b")
let c = LPExpression.Var("c")
engine.addConstraint(a + b == 2*(c + b))
engine.addConstraint(c >= 100)
engine.addConstraint((a == 30).atPriority(300))
engine.addConstraint((b == 60).atPriority(400))
//println(engine)
println(engine.valueForExpression(a))
println(engine.valueForExpression(b))
println(engine.valueForExpression(c))