Module geometry

Source
Expand description

Utility crate providing functions for geometry computations.

Structs§

Circle
Represents a circle in a 2D euclidean space.
Complex
Represents a complex number
Line
Represents a line in a 2D Euclidean space.

Enums§

ValueEnum
Enumerated value type for serialization.

Functions§

distance_pt_ln
distance_pt_pt
get_angle
Gets the angle between two arms and the origin
get_angle_directed
Gets the directed angle between two arms and the origin
get_intersection
Gets the intersection point of two lines.
get_line
Get the line going through p1 and p2
rotate_around