shape-core 0.1.17

Definition of geometry shapes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[test]
fn ready() {
    println!("it works!")
}

#[test]
#[cfg(feature = "wolfram-expr")]
fn test() {
    use shape_core::Point;
    println!("{:#}", Point::new(100, 100).as_wolfram());
    // println!("{:#}", Rectangle::new((100, 100), (1000, 618)).as_wolfram());
    // println!("{:#}", Triangle::new([(100, 100), (400, 500), (800, 1000)]).as_wolfram());
    // println!("{:#}", Ellipse::new((100.0, 100.0), (50.0, 25.0), 1.0).as_wolfram());
}