public float getAngle() { return MathUtils.atan2(s, c); }
/** * Extract the angle from this matrix (assumed to be a rotation matrix). * * @return */ public final float getAngle() { return MathUtils.atan2(ex.y, ex.x); }
/** * Extract the angle from this matrix (assumed to be a rotation matrix). * * @return */ public final float getAngle() { return MathUtils.atan2(ex.y, ex.x); }
public float getAngle() { return MathUtils.atan2(s, c); }
@Override public void drawCircle(Vec2 center, float radius, Vec2 axis, Color3f color) { Graphics2D g = getGraphics(); saveState(g); transformGraphics(g, center); g.setStroke(stroke); Color s = cpool.getColor(color.x, color.y, color.z, 1f); g.scale(radius, radius); g.setColor(s); g.draw(circle); if (axis != null) { g.rotate(MathUtils.atan2(axis.y, axis.x)); g.drawLine(0, 0, 1, 0); } restoreState(g); }
@Override public void drawSolidCircle(Vec2 center, float radius, Vec2 axis, Color3f color) { Graphics2D g = getGraphics(); saveState(g); transformGraphics(g, center); g.setStroke(stroke); Color f = cpool.getColor(color.x, color.y, color.z, .4f); Color s = cpool.getColor(color.x, color.y, color.z, 1f); g.scale(radius, radius); g.setColor(f); g.fill(circle); g.setColor(s); g.draw(circle); if (axis != null) { g.rotate(MathUtils.atan2(axis.y, axis.x)); g.drawLine(0, 0, 1, 0); } restoreState(g); }
/** * Extract the angle from this matrix (assumed to be a rotation matrix). * * @return */ public final float getAngle() { return MathUtils.atan2(ex.y, ex.x); }
/** * Extract the angle from this matrix (assumed to be a rotation matrix). * * @return */ public final float getAngle() { return MathUtils.atan2(ex.y, ex.x); }
public float getAngle() { return MathUtils.atan2(s, c); }
public float getAngle() { return MathUtils.atan2(s, c); }