Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ItemModel(final Item item, final double arcStartR, final double arcEndR,
- final float arcStartD, final float arcEndD)
- {
- this.mItem = item;
- this.mArcStartR = arcStartR;
- this.mArcEndR = arcEndR;
- this.mArcStartD = arcStartD;
- this.mArcEndD = arcEndD;
- this.mArcStartSin = Math.sin(mArcStartR);
- this.mArcStartCos = Math.cos(mArcStartR);
- this.mArcEndSin = Math.sin(mArcEndR);
- this.mArcEndCos = Math.cos(mArcEndR);
- // ----------->
- double diff = Math.abs(Math.abs(this.mArcStartCos) - Math.abs(this.mArcEndCos));
- if ( diff <= 0.0001 )
- {
- this.mArcStartCos = -1.0;
- this.mArcEndCos = 1.0;
- }
- // ----------->
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement