astroimsim-geometry 0.1.17

Geometry package for astroimsim
Documentation
use plotpy::Plot;
use astroimsim_geometry::coordinate_system::Coordinates::RELATIVE;
use astroimsim_geometry::coordinate_system::CoordinateSystem;
use astroimsim_geometry::grid2d::GRID2D;
use crate::projection_test::test_project;

pub mod coordinate_system;
pub mod grid1d;
pub mod grid2d;
pub mod points;
mod projection_test;

fn main() {

    let mut plot = Plot::new();
    let coords = CoordinateSystem::new((1.0,0.0),(0.0,1.0),(0.0,0.0), "test_1");
    plot.legend();
    plot.save("test");



    /*
let grid = GRID2D::new_from_width((9000,9000),(1.0,1.0), (0.0,0.0), 0.01,RELATIVE(coords.clone()));
println!("{:?}",grid.locate(grid.num_points-1));


let grid = GRID2D::new_from_width((6,6),(1.0,1.0), (0.0,0.0), 0.01,RELATIVE(coords.clone()));
println!("{:?}",grid.locate(grid.num_points-1))

     */

}