Module linestring::nalgebra_2d [−][src]
This module is optional. To use if you must include the feature impl-nalgebra
in your Cargo.toml
file.
By default all features are enabled (this is a work-around to enable the automatic rust doc).
If you want to only enable the impl-nalgebra
feature you must first disable the default features with default-features=false
.
Cargo.toml example: linestring = {version="<current version>",default-features=false,features=["impl-nalgebra"]}
Modules
convex_hull | Module containing the convex hull calculations |
intersection | Module containing the intersection calculations |
Structs
Aabb2 | A simple 2d AABB If min_max is none the data has not been assigned yet. |
Line2 | A 2d line |
LineString2 | A 2d line string, aka polyline. If the ‘connected’ field is set the ‘as_lines()’ method will connect start point with the end-point. Todo: The builder structure of this struct needs to be revisited |
LineStringSet2 | A set of 2d LineString, an aabb + convex_hull. It also contains a list of aabb & convex_hulls of shapes this set has gobbled up. This can be useful for separating out inner regions of the shape. |
SimpleAffine | 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. |
VoronoiParabolicArc | 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. |
Enums
Intersection | |
Shape2d | Placeholder for different 2d shapes |
Functions
distance_to_line_squared | 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² |
distance_to_line_squared_safe | Same as distance_to_line_squared |
distance_to_point_squared | The distance² between the two points |
intersect_line_point | Get any intersection point between line segment and point. Inspired by https://stackoverflow.com/a/17590923 |
point_ulps_eq | |
scale_to_coordinate | |
ulps_eq |