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

      public static final double sphericalVoronoiDomainArea​(Vector3D germ, Vector3D[] neighbors)
      Computes area of a spherical Voronoi domain, based on a germ and several neighbors.
      Parameters:
      germ - the germ of the region
      neighbors - the neighbor germs
      Returns:
      the area of the spherical Voronoi domain
    • sphericalAngle

      public static final double sphericalAngle​(Vector3D v1, Vector3D v2, Vector3D v3)
      Computes the spherical angle of three points on the unit sphere, based on the vectors.
      Parameters:
      v1 - the first vector
      v2 - the second vector
      v3 - the third vector
      Returns:
      the spherical angle