Permalink
Browse files

Add line methods to GeomRegions

  • Loading branch information...
awalter17 committed Jan 30, 2017
1 parent 470bcdb commit 1d9c705831d2a31aa3df89c7ebb59924b70424dd
Showing with 14 additions and 0 deletions.
  1. +14 −0 src/main/java/net/imglib2/roi/geometric/GeomRegions.java
@@ -123,6 +123,20 @@ public static PointCollection pointCollection( final Collection< ? extends Local
return new PointCollection( vertices );
}
// TODO: Discuss how embedding a shape into a higher dimensional space
// should be handled
// -- Create Line --
public static Line line( final double[] point1, final double[] point2 )
{
return new Line( point1, point2 );
}
public static Line line( final RealPoint point1, final RealPoint point2 )
{
return new Line( point1, point2 );
}
// -- Helper methods --
private static AffineGet createAffineMatrix( final RealLocalizable center, final double[][] rotationMatrix, final int dim )

0 comments on commit 1d9c705

Please sign in to comment.