pi/π : Java Glossary


An irrational number approximately 3.141592654, the ratio of the circumference of a circle to its diameter. It is approximated in Java with the double Math.PI.

The circumference of a circle is 2πr where r is the radius.

The area of a circle is πr² where r is the radius.

A complete circle is radians. One radian is about 57.2957795 degrees, measured counterclockwise from due east. Java’s Math.sin and Math.cos etc. work in radians.

45 degrees = π/4 = .775398 radians.
90 degrees = π/2 = 1.57079 radians.
180 degrees = π = 3.14159 radians.
360 degrees = = 6.28318 radians.

The circumference of the outer curved part of a pie-shaped wedge is θr where θ is the angle in radians and r is the radius.

The area of a pie-shaped wedge is θr²/2 where θ is the angle in radians and r is the radius.

There are two convenience methods for interconverting degress and radians.

// built-in radians <-> degrees methods.
public static double toDegrees ( double angleInRadians );
public static double toRadians ( double angleInDegrees );

This page is posted
on the web at:


Optional Replicator mirror
of mindprod.com
on local hard disk J:

Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

Your face IP:[]
You are visitor number