rust-3d 0.25.2

2D/3D library written in rust
Documentation
/*
Copyright 2016 Martin Buck
This file is part of rust-3d.
rust-3d is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
rust-3d is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with rust-3d.  If not, see <http://www.gnu.org/licenses/>.
*/

//use point_cloud_2d::{PointCloud2D};
//use plane_3d::{Plane3D};

//use traits::{IsProjectionToPlane, IsPlane3D, IsBuildable2D, IsBuildable3D, TransFormableTo2D, TransFormableTo3D};
/*TODO
pub struct ProjectionToPlane<P2,P3,PL> where P2: IsBuildable2D + TransFormableTo3D, P3: IsBuildable3D + TransFormableTo2D, PL: IsPlane3D<P3> {
    pub pc: PointCloud2D<P2>,
    pub plane: PL
}

impl<P2,P3,PL> IsProjectionToPlane<P2,P3> for ProjectionToPlane<P2,P3,PL> where P2: IsBuildable2D + TransFormableTo3D, P3: IsBuildable3D + TransFormableTo2D, PL: IsPlane3D<P3> {
    fn from_2d<PL>(plane: PL, pc: PointCloud2D<P2>) -> Box<Self> where PL: IsPlane3D<P3> {
        Box::new(ProjectionToPlane{
            pc: pc,
            plane: plane
        })
    }

    fn from_3d<PL>(plane: PL, pc: PointCloud3D<P3>) -> Box<Self> where PL: IsPlane3D<P3> {
        let mut pc2d = PointCloud2D::<P2>::new();
        let mut plane = Plane3D::new();

        //@TODO NOT IMPLEMENTED
        //@TODO for each point within the 3d space, project it onto the plane
        //@TODO then transform these points into the local system


        Box::new(ProjectionToPlane{
            pc: pc2d,
            plane: plane
        })
    }


}
*/