geometry-model 0.0.8

Built-in concrete geometry types (Point, Segment, Box, Linestring, Polygon, …) mirroring Boost.Geometry models — or bring your own via the concept traits.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0061]: this function takes 2 arguments but 3 arguments were supplied
  --> tests/ui/wrong_arity.rs:11:13
   |
11 |     let _ = Point2D::<f64, Cartesian>::new(1.0, 2.0, 3.0);
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^           --- unexpected argument #3 of type `{float}`
   |
note: associated function defined here
  --> src/point.rs
   |
   |     pub const fn new(v0: T, v1: T) -> Self {
   |                  ^^^
help: remove the extra argument
   |
11 -     let _ = Point2D::<f64, Cartesian>::new(1.0, 2.0, 3.0);
11 +     let _ = Point2D::<f64, Cartesian>::new(1.0, 2.0);
   |