Module linestring::linestring_2d
source · Modules
- Module containing the convex hull calculations
- A module containing boiler-plate implementations of standard traits such as Default, From etc etc
- Module containing the intersection calculations but for indexed vertexes
- Module containing the intersection calculations
Structs
- A simple 2d AABB If min_max is none no data has not been assigned yet.
- An iterator that treats the Vec as a set of disconnected points, giving an iterator to each
Line2
. - A 2d line
- This is a simple but efficient affine transformation object. It can pan, zoom and flip points around center axis but not rotate. It does not handle vector transformation, only points.
- A parabolic arc as used in https://github.com/eadf/boostvoronoi.rs This struct contains the parameters for the arc + the functionality to convert it to a LineString2 or LineString3.
- An iterator that treats the Vec as a set of connected points, giving an iterator to each
Line2
.
Enums
Traits
- A workaround for Rust’s limitations where external traits cannot be implemented for external types.
- A 2D polyline representation with some operations.
Functions
- The distance between the line a->b to the point p is the same as distance = |(a-p)×(a-b)|/|a-b| https://en.wikipedia.org/wiki/Distance_from_a_point_to_a_line#Another_vector_formulation Make sure to not call this function with a-b==0 This function returns the distance²
- Same as
distance_to_line_squared<T>
but it can be called when a-b might be 0. It’s a little slower because it does the a==b test - Get any intersection point between line segment and point. Inspired by https://stackoverflow.com/a/17590923