/*
 * Copyright (C) 2011-2015, Peter Abeles. All Rights Reserved.
 *
 * This file is part of Geometric Regression Library (GeoRegression).
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package georegression.misc;


import org.ejml.UtilEjml;

/**
 * Constants used throughout the library.
 *
 * @author Peter Abeles
 */
public class GrlConstants {

	public static float F_PI = (float)Math.PI;
	/**
	 * Float 2*PI
	 */
	public static float F_PI2 = (float)(2.0*Math.PI);
	/**
	 * Float PI/2
	 */
	public static float F_PId2 = (float)(Math.PI/2.0);
	public static double PI2 = 2.0*Math.PI;
	public static double PId2 = Math.PI/2.0;

	// identifies the library version
	public static String VERSION = "0.10";

	// standard tolerances used in unit tests
	public static float FLOAT_TEST_TOL = 1e-4f;
	public static double DOUBLE_TEST_TOL = 1e-8f;

	public static double F_EPS = (float)Math.pow(2,-21);
	public static double EPS = UtilEjml.EPS;

}

 

Ads help maintain this website.