Const
The radius.
Returns the area.
0.7.0
area.circle(1)
// => 3.14159
Area of an ellipse.
The major radius.
The minor radius.
Returns the area.
0.7.0
area.ellipse(1, 2)
// => 6.28319
Area of a parallelogram.
Returns the area.
0.7.0
area.parallelogram(3, 2)
// => 6
Area of a rectangle.
Returns the area.
0.7.0
area.rectangle(2, 3)
// => 6
Area of a square.
Returns the area.
0.7.0
area.square(2)
// => 4
Area of a trapezoid.
Returns the area.
0.7.0
area.trapezoid(3, 2, 2)
// => 5
Area of a triangle.
Returns the area.
0.7.0
area.triangle(1, 2)
// => 1
Area of a circle.