Package georegression.struct.line
Class LinePolar2D_F64
java.lang.Object
georegression.struct.line.LinePolar2D_F64
- All Implemented Interfaces:
Serializable
Defines a line in 2D space based upon the distance of its closest point to the origin and the angle of a line from the origin to that point. Also referred to as the polar line equation.
Equation:
x*cos(θ) + y*sin(θ) = r
where r is the distance from the closest point on the line to the origin, and θ is
an angle tangent to the line.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsetTo
(double distance, double angle) setTo
(LinePolar2D_F64 src) toString()
void
zero()
-
Field Details
-
distance
public double distanceDistance from the origin to the closest point on the line. -
angle
public double angleAngle in radians from the origin to the closest point on the line.
-
-
Constructor Details
-
LinePolar2D_F64
public LinePolar2D_F64(double distance, double angle) -
LinePolar2D_F64
public LinePolar2D_F64()
-
-
Method Details