Package icyllis.arc3d.granite
Class ArcShape
java.lang.Object
icyllis.arc3d.granite.ArcShape
-
Field Summary
Modifier and TypeFieldDescriptionstatic 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
-
Method Summary
-
Field Details
-
kArc_Type
public static final int kArc_TypeThe 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_TypeThe 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_TypeThe 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_TypeThe 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_TypeThe 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 mHalfWidthValid 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
-