To transform two best candidates to Hesse Normal Form in Matlab, you can use the following code:
main.m630 chars19 lines
In Hesse Normal Form, a line is represented using polar coordinates (rho, theta), where rho is the perpendicular distance from the origin to the line and theta is the angle formed by the perpendicular line and the positive horizontal axis.
gistlibby LogSnag