Class SimpleShape

java.lang.Object
icyllis.arc3d.core.RoundRect
icyllis.arc3d.granite.SimpleShape

public class SimpleShape extends RoundRect
  • Field Details

    • kLine_Type

      public static final int kLine_Type
      Extends RoundRect::Type, adds three types of stroked lines.

      LeftTop becomes the start point and RightBottom becomes the end point. RadiusUlx becomes half the line width.

      See Also:
    • kLineRound_Type

      public static final int kLineRound_Type
      Extends RoundRect::Type, adds three types of stroked lines.

      LeftTop becomes the start point and RightBottom becomes the end point. RadiusUlx becomes half the line width.

      See Also:
  • Constructor Details

    • SimpleShape

      public SimpleShape()
    • SimpleShape

      public SimpleShape(RoundRect other)
    • SimpleShape

      public SimpleShape(Rect2fc other)
  • Method Details

    • setLine

      public void setLine(float x0, float y0, float x1, float y1, float radius, boolean round)
    • setLine

      public void setLine(float x0, float y0, float x1, float y1, int cap, float width)
    • getBounds

      public void getBounds(Rect2f dest)
      Description copied from class: RoundRect
      Returns bounds. Bounds may have zero width or zero height. Bounds right is greater than or equal to left; bounds bottom is greater than or equal to top. Result is identical to RoundRect.getRect(icyllis.arc3d.core.Rect2f).
      Overrides:
      getBounds in class RoundRect