package com.facebook.yoga; public class YogaConstants { public static final float UNDEFINED = Float.NaN; public static float getUndefined() { return Float.NaN; } public static boolean isUndefined(float f) { return Float.compare(f, Float.NaN) == 0; } public static boolean isUndefined(YogaValue yogaValue) { return yogaValue.unit == YogaUnit.UNDEFINED; } }Download file