Field PI
Field type: double
Member of:
java.lang.Math
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
public static final BigDecimal PI = new BigDecimal(Math.PI);
2
public static final AffineTransform VERTICAL_ROTATION = AffineTransform.getRotateInstance( -Math.PI / 2 );
3
public static final float TWO_PI = (float)Math.PI*2.0f;
4
return (float) ((a / 180.0f) * Math.PI + Math.PI);
5
static final float DSQRT2PI = (float)(Math.sqrt(2*Math.PI)*3.0/4.0);
6
static final float SQRT2PI = (float)Math.sqrt(2*Math.PI);
7
s += Math.PI * 2;
8
theta = Math.PI/4;
9
return oldHeading - newHeading > Math.PI;
10
Double pi = new Double(Math.PI);
11
fBasicCenterCurve[i]= Math.cos(Math.PI * r);
12
this.angle = angle * Math.PI / 180.0;
13
theta = theta*180.0/Math.PI;
14
double radians = Math.PI / 2;
15
frameToRadian = 2.0f * (float)Math.PI / sampleRate * hertz;
16
mover.setOffsetTheta(-(Math.PI/2));
17
double theta = (rotate/180)*Math.PI;
18
g2.transform(AffineTransform.getRotateInstance(Math.PI * (ratio - 1.0f)));
19
if (deltaor.getY()<0){angle=Math.PI;}
20
this.addYTick("-PI", -Math.PI);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.