Add point-circle centrality constraint - #69
Conversation
| system.add_constraint( | ||
| ConstraintTag::PointCircleCentrality, | ||
| [ | ||
| expressions::VariableVariableEquality { | ||
| variable1_idx: point_idx, | ||
| variable2_idx: circle_center_idx, | ||
| } | ||
| .into(), | ||
| expressions::VariableVariableEquality { | ||
| variable1_idx: point_idx + 1, | ||
| variable2_idx: circle_center_idx + 1, | ||
| } | ||
| .into(), | ||
| ], | ||
| ) |
There was a problem hiding this comment.
Note that this does not introduce any new expressions, it's conceptually very similar to PointPointCoincidence.
There was a problem hiding this comment.
(Also having valency 2.)
|
If we keep referencing, then this is the same as point-point-coincident constraint! (And I think we should keep referencing as we've been discussing on a call.) |
Indeed, I'll convert this to draft for now; and if we keep referencing, we should probably close this as to not have too many ways of doing the same thing. For posterity, I'll paste part of our thinking on referencing (and related topics) posted elsewhere here:
|
918c9ba to
92e57d1
Compare
On top of #68.
This adds a point-circle centrality constraint, reusing the expressions introduced for point-point coincidence.