/** * Formats the supplied value, truncated to the currently configured number of decimal places. * The value is also always preceded by a sign (e.g. +1.0 or -0.5). */ public static String toString (float value) { return toString(value, TO_STRING_DECIMAL_PLACES); }
/** * Formats the supplied value, truncated to the currently configured number of decimal places. * The value is also always preceded by a sign (e.g. +1.0 or -0.5). */ public static String toString (float value) { return toString(value, TO_STRING_DECIMAL_PLACES); }
@Override public String toString () { if (m00 != 1 || m01 != 0 || m10 != 0 || m11 != 1) return "affine [" + MathUtil.toString(m00) + " " + MathUtil.toString(m01) + " " + MathUtil.toString(m10) + " " + MathUtil.toString(m11) + " " + translation() + "]"; else if (tx != 0 || ty != 0) return "trans " + translation(); else return "ident"; }
@Override public String toString () { if (m00 != 1 || m01 != 0 || m10 != 0 || m11 != 1) return "affine [" + MathUtil.toString(m00) + " " + MathUtil.toString(m01) + " " + MathUtil.toString(m10) + " " + MathUtil.toString(m11) + " " + translation() + "]"; else if (tx != 0 || ty != 0) return "trans " + translation(); else return "ident"; }