Package inra.ijpb.measure.region3d
Class GeometryUtils
java.lang.Object
inra.ijpb.measure.region3d.GeometryUtils
public class GeometryUtils
extends java.lang.Object
Some utilities for geometric computations.
- Author:
- dlegland
-
Method Summary
Modifier and Type Method Description static double
sphericalAngle(Vector3D v1, Vector3D v2, Vector3D v3)
Computes the spherical angle of three points on the unit sphere, based on the vectors.static double
sphericalVoronoiDomainArea(Vector3D germ, Vector3D[] neighbors)
Computes area of a spherical Voronoi domain, based on a germ and several neighbors.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
sphericalVoronoiDomainArea
Computes area of a spherical Voronoi domain, based on a germ and several neighbors.- Parameters:
germ
- the germ of the regionneighbors
- the neighbor germs- Returns:
- the area of the spherical Voronoi domain
-
sphericalAngle
Computes the spherical angle of three points on the unit sphere, based on the vectors.- Parameters:
v1
- the first vectorv2
- the second vectorv3
- the third vector- Returns:
- the spherical angle
-