Class ArcShape

java.lang.Object
icyllis.arc3d.granite.ArcShape

public class ArcShape extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The arc is a closed shape, paint's cap is ignored, this cap determines the shape of the arc itself.
    static final int
    The arc is a closed shape, paint's cap is ignored, this cap determines the shape of the arc itself.
    static final int
    The arc is a closed shape, paint's cap is ignored, this cap determines the shape of the arc itself.
    static final int
    The arc is a closed shape, paint's cap is ignored, this cap determines the shape of the arc itself.
    static final int
    The arc is a closed shape, paint's cap is ignored, this cap determines the shape of the arc itself.
    static final int
     
    float
     
    float
     
    float
    Valid only for open arc.
    float
     
    float
     
    float
     
    int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    ArcShape(float centerX, float centerY, float radius, float startAngle, float sweepAngle, float halfWidth)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    static boolean
    isOpenArc(int type)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • kArc_Type

      public static final int kArc_Type
      The arc is a closed shape, paint's cap is ignored, this cap determines the shape of the arc itself. Butt -> Ring, Round -> Arc, Square -> Horseshoe.
      See Also:
    • kArcRound_Type

      public static final int kArcRound_Type
      The arc is a closed shape, paint's cap is ignored, this cap determines the shape of the arc itself. Butt -> Ring, Round -> Arc, Square -> Horseshoe.
      See Also:
    • kArcSquare_Type

      public static final int kArcSquare_Type
      The arc is a closed shape, paint's cap is ignored, this cap determines the shape of the arc itself. Butt -> Ring, Round -> Arc, Square -> Horseshoe.
      See Also:
    • kPie_Type

      public static final int kPie_Type
      The arc is a closed shape, paint's cap is ignored, this cap determines the shape of the arc itself. Butt -> Ring, Round -> Arc, Square -> Horseshoe.
      See Also:
    • kChord_Type

      public static final int kChord_Type
      The arc is a closed shape, paint's cap is ignored, this cap determines the shape of the arc itself. Butt -> Ring, Round -> Arc, Square -> Horseshoe.
      See Also:
    • kTypeCount

      public static final int kTypeCount
      See Also:
    • mCenterX

      public float mCenterX
    • mCenterY

      public float mCenterY
    • mRadius

      public float mRadius
    • mStartAngle

      public float mStartAngle
    • mSweepAngle

      public float mSweepAngle
    • mHalfWidth

      public float mHalfWidth
      Valid only for open arc.
    • mType

      public int mType
  • Constructor Details

    • ArcShape

      public ArcShape()
    • ArcShape

      public ArcShape(float centerX, float centerY, float radius, float startAngle, float sweepAngle, float halfWidth)
  • Method Details

    • isOpenArc

      public static boolean isOpenArc(int type)
    • getBounds

      public void getBounds(Rect2f dest)