Skip to content

Commit

Permalink
Add experimental notices
Browse files Browse the repository at this point in the history
  • Loading branch information
JD557 committed Sep 7, 2024
1 parent e14caf0 commit 26ba409
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ package eu.joaocosta.minart.geometry
*
* Represents a rectangular region aligned to the (x, y) axis and provides some basic functionality.
*
* This API is *experimental* and might change in the near future.
*
* @param x x position of the top-left coordinate
* @param y y position of the top-left coordinate
* @param width box width in pixels
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ package eu.joaocosta.minart.geometry
*
* It's considered to be facing the viewer if the radius is positive.
*
* This API is *experimental* and might change in the near future.
*
* @param center center of the circle.
* @param radius circle radius
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ package eu.joaocosta.minart.geometry
* There is no check in place to guarantee that the generated polygon is actually convex.
* If this is not the case, the methods may return wrong results.
*
* This API is *experimental* and might change in the near future.
*
* @param vertices ordered sequence of vertices.
*/
final case class ConvexPolygon(vertices: Vector[Shape.Point]) extends Shape {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package eu.joaocosta.minart.geometry
/** Abstract shape.
*
* Can be combined with other shapes and can check if a point is inside of it.
*
* This API is *experimental* and might change in the near future.
*/
trait Shape {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ trait MutableSurface extends Surface {
}

/** Draws a shape on top of this surface.
*
* This API is *experimental* and might change in the near future.
*
* @param shape shape to draw
* @param frontfaceColor color of the front face
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ trait Plane extends Function2[Int, Int, Color] { outer =>
*
* Similar to MutableSurface#rasterize, but for shapes and planes.
*
* This API is *experimental* and might change in the near future.
*
* @param that shape to overlay
* @param frontfaceColor color of the front face
* @param backfaceColor color of the back face
Expand Down

0 comments on commit 26ba409

Please sign in to comment.