Simple math algorithm: Center point of a line - Stack Overflow
What you are remembering is a geometric method of constructing the perpendicular bisector of a line segment using only a compass and straightedge. Consider, for instance:
This was fine for the ancient Greeks, but there are other methods (such as the one you have coded) which work better for computers.
Read full article from Simple math algorithm: Center point of a line - Stack Overflow
No comments:
Post a Comment