pub trait Transformation {
type SourceCoord;
type DestinationCoord;
// Required method
fn transform_point(
&self,
p: Point<Self::SourceCoord>,
) -> Point<Self::DestinationCoord>;
}
Expand description
General geometric transformation.
Required Associated Types§
Sourcetype SourceCoord
type SourceCoord
Coordinate type of input points.
Sourcetype DestinationCoord
type DestinationCoord
Coordinate type of output points.
Required Methods§
Sourcefn transform_point(
&self,
p: Point<Self::SourceCoord>,
) -> Point<Self::DestinationCoord>
fn transform_point( &self, p: Point<Self::SourceCoord>, ) -> Point<Self::DestinationCoord>
Apply the transform to a point.