Here you can find the source of negative(float a)
public static boolean negative(float a)
//package com.java2s; /************************************************************************************** * util_tree/*from w w w .j a v a 2 s. c o m*/ * Copyright (c) 2014-2017 National University of Colombia, https://github.com/remixlab * @author Jean Pierre Charalambos, http://otrolado.info/ * * All rights reserved. Library that eases the creation of interactive * scenes, released under the terms of the GNU Public License v3.0 * which is available at http://www.gnu.org/licenses/gpl.html **************************************************************************************/ public class Main { public static float FLOAT_EPS = Float.MIN_VALUE; /** * @return true if the value is negative. */ public static boolean negative(float a) { return a <= -FLOAT_EPS; } }