is using the float data type in this scenario really necessary
I am going through a circular custom view implementation(android) and I
see the developer making alot of uses of the float data type. I for one
has never used this because I haven't seen the need to. I am not sure why
he's using it so I am wondering if there are any advantages to using it
especially in this scenario where mainly coordinates are being stored and
calculating will be done using them.
/** The radius of the inner circle */
private float innerRadius;
/** The radius of the outer circle */
private float outerRadius;
/** The circle's center X coordinate */
private float cx;
/** The circle's center Y coordinate */
private float cy;
/** The left bound for the circle RectF */
private float left;
/** The right bound for the circle RectF */
private float right;
/** The top bound for the circle RectF */
private float top;
/** The bottom bound for the circle RectF */
private float bottom;
/** The X coordinate for the top left corner of the marking drawable */
private float dx;
/** The Y coordinate for the top left corner of the marking drawable */
private float dy;
No comments:
Post a Comment