Skip to content

Commit

Permalink
[math] Addition of OrientedPoint type hierarchy.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpiotrow committed Jun 10, 2016
1 parent 7e5c67b commit d430662
Show file tree
Hide file tree
Showing 5 changed files with 1,025 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
* @param <V> is the type of the vectors.
* @param <B> is the type of the bounding boxes.
* @author $Author: sgalland$
* @author $Author: tpiotrow$
* @version $FullVersion$
* @mavengroupid $GroupId$
* @mavenartifactid $ArtifactId$
Expand Down Expand Up @@ -167,6 +168,24 @@ E newArcPathElement(double startX, double startY, double targetX, double targetY
*/
Segment2afp<?, ?, E, P, V, B> newSegment(double x1, double y1, double x2, double y2);

/** Create an oriented point.
*
* @param x the x coordinate of the point.
* @param y the y coordinate of the point.
* @return the new oriented point
*/
OrientedPoint2afp<?, ?, E, P, V, B> newOrientedPoint(double x, double y);

/** Create an oriented point.
*
* @param x the x coordinate of the point.
* @param y the y coordinate of the point.
* @param dirX the x coordinate of the direction vector.
* @param dirY the y coordinate of the direction vector.
* @return the new oriented point
*/
OrientedPoint2afp<?, ?, E, P, V, B> newOrientedPoint(double x, double y, double dirX, double dirY);

/** Replies the {@link PathIterator2afp} that is corresponding to the given element.
*
* <p>If the given element is already a {@link PathIterator2afp}, returns {@code this}.
Expand Down
Loading

0 comments on commit d430662

Please sign in to comment.