Class PointPair3D

java.lang.Object
inra.ijpb.geometry.PointPair3D

public class PointPair3D
extends java.lang.Object
A pair of points in the 3D space, useful for representing result of Max Feret Diameter computation or similar problems. Simply contains the reference to each extremity.
Author:
dlegland
See Also:
PointPair2D
  • Field Summary

    Fields
    Modifier and Type Field Description
    Point3D p1
    The first point of the pair.
    Point3D p2
    The second point of the pair.
  • Constructor Summary

    Constructors
    Constructor Description
    PointPair3D​(Point3D p1, Point3D p2)
    Creates a new 3D point pair.
  • Method Summary

    Modifier and Type Method Description
    double diameter()  

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • p1

      public final Point3D p1
      The first point of the pair.
    • p2

      public final Point3D p2
      The second point of the pair.
  • Constructor Details

    • PointPair3D

      public PointPair3D​(Point3D p1, Point3D p2)
      Creates a new 3D point pair.
      Parameters:
      p1 - the first point of the pair.
      p2 - the second point of the pair.
  • Method Details

    • diameter

      public double diameter()
      Returns:
      the diameter of the pair, as the distance between the two points.