timondavis / cm-maze

1 stars 0 forks source link

CardinaltyBehavior::getOpposingPoint() is a candidate for mathematical implementation #15

Open timondavis opened 6 years ago

timondavis commented 6 years ago

It may be possible to shrink the algorithm time complexity from O(n) to O(1)

timondavis commented 6 years ago

This function may be a candidate for abstract overrides if a single equation can't cover all of the scenarios. For instance - 2D/3D?