rcgal 0.2.2

Rust Computational Geometry Algorithms Library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::{
    algorithm::location::{
        location_enum::Point2Polygon2Location,
        point_2_polygon_2::locate_point_2_polygon_2 as KernelLocatePoint2Polygon2,
    },
    wasm::kernel::{point_2::Point2, polygon_2::Polygon2},
};
use wasm_bindgen::prelude::*;

#[wasm_bindgen]
pub fn locate_point_2_polygon_2(point: &Point2, polygon: &Polygon2) -> Point2Polygon2Location {
    KernelLocatePoint2Polygon2(&point.kernel_point_2, &polygon.kernel_polygon_2)
}