001 package com.croftsoft.core.math; 002 003 /*********************************************************************** 004 * A collection of constants to supplement java.lang.Math. 005 * 006 * @version 007 * $Id: MathConstants.java,v 1.4 2008/08/24 00:28:36 croft Exp $ 008 * @since 009 * 2002-01-27 010 * @author 011 * <a href="http://CroftSoft.com/">David Wallace Croft</a> 012 ***********************************************************************/ 013 014 public interface MathConstants 015 //////////////////////////////////////////////////////////////////////// 016 //////////////////////////////////////////////////////////////////////// 017 { 018 019 public static final long 020 MILLISECONDS_PER_DAY = 1000 * 60 * 60 * 24, 021 MILLISECONDS_PER_SECOND = 1000, 022 NANOSECONDS_PER_MICROSECOND = 1000, 023 NANOSECONDS_PER_MILLISECOND = 1000000, 024 NANOSECONDS_PER_SECOND = 1000000000; 025 026 public static final double 027 DEGREES_PER_RADIAN = 360.0 / ( 2.0 * Math.PI ), 028 GOLDEN_RATIO = 1.618033988749894848204586, 029 SECONDS_PER_NANOSECOND = 0.000000001, 030 TWO_PI = 2 * Math.PI; 031 032 //////////////////////////////////////////////////////////////////////// 033 //////////////////////////////////////////////////////////////////////// 034 }