public class AreaCalculations extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
AreaCalculations.Area |
protected static class |
AreaCalculations.Calculation |
protected static class |
AreaCalculations.Centroid |
protected static class |
AreaCalculations.Circumference |
Constructor and Description |
---|
AreaCalculations() |
Modifier and Type | Method and Description |
---|---|
static double |
area(PathIterator path)
Computes the surface area of the path or multiple specified paths.
|
static double[] |
centroid(PathIterator path) |
static double |
circumference(PathIterator path)
Computes the perimeter of the specified path or multiple paths.
|
static void |
main(String[] args) |
static double |
triangleArea(double[] a,
double[] b,
double[] c) |
public static double circumference(PathIterator path)
path
- the path.public static double triangleArea(double[] a, double[] b, double[] c)
public static double area(PathIterator path)
path
- the path.public static double[] centroid(PathIterator path)
public static void main(String[] args)
Copyright © 2015–2021 Fiji. All rights reserved.