Uses of Class
edu.cnu.mdi.geometry.Point

Packages that use Point
  • Uses of Point in edu.cnu.mdi.geometry

    Subclasses of Point in edu.cnu.mdi.geometry
    Modifier and Type
    Class
    Description
    class 
    A mutable three-dimensional Cartesian vector.
    Methods in edu.cnu.mdi.geometry that return Point
    Modifier and Type
    Method
    Description
    Point.add(Point other)
    Adds another point or vector to this point, coordinate by coordinate.
    Finds the point on this infinite line closest to a given point.
    static Point
    Point.difference(Point a, Point b)
    Computes the coordinate-wise difference a - b.
    Line.getCenter()
    Gets the midpoint of the directed segment from p0 to p1.
    Sphere.getCenter()
    Gets the center of the sphere.
    Line.getP(double t)
    Gets a point on the parametric line.
    Line.getP0()
    Gets the line's base point.
    Line.getP1()
    Gets the endpoint corresponding to t = 1.
    Point.scale(double scalar)
    Multiplies this point's coordinates by a scalar.
    Point.subtract(Point other)
    Subtracts another point from this point.
    Methods in edu.cnu.mdi.geometry with parameters of type Point
    Modifier and Type
    Method
    Description
    Point.add(Point other)
    Adds another point or vector to this point, coordinate by coordinate.
    Finds the point on this infinite line closest to a given point.
    static Point
    Point.difference(Point a, Point b)
    Computes the coordinate-wise difference a - b.
    static void
    Point.difference(Point a, Point b, Point c)
    Computes the coordinate-wise difference a - b and stores it in an existing point.
    double
    Line.distance(Point p)
    Computes the shortest distance from this infinite line to a point.
    double
    Point.distance(Point p)
    Computes the Euclidean distance from this point to another point.
    static double
    Point.distance(Point p1, Point p2)
    Computes the Euclidean distance between two points.
    double
    Point.dot(Point v)
    Computes the dot product of this tuple with another tuple.
    static double
    Point.dot(Point a, Point b)
    Computes the dot product of two tuples.
    void
    Line.getP(double t, Point p)
    Gets a point on the parametric line and stores it in an existing point.
    double
    Plane.interpolate(Point p1, Point p2, Point p)
    Creates a line through two points and computes the line-plane intersection.
    boolean
    Cylinder.isInside(Point p)
    Tests whether a point is strictly inside the cylinder.
    double
    Plane.lineIntersection(Line line, Point intersection)
    Computes the intersection of an infinite line with this plane.
    double
    Computes the line parameter of the point on this infinite line closest to a given point.
    void
    Point.set(Point p)
    Sets this point's coordinates from another point.
    double
    Cylinder.signedDistance(Point p)
    Computes the signed shortest distance from a point to the cylinder surface.
    double
    Computes the signed shortest distance from a point to the sphere surface.
    Point.subtract(Point other)
    Subtracts another point from this point.
    Constructors in edu.cnu.mdi.geometry with parameters of type Point
    Modifier
    Constructor
    Description
     
    Line(Point po, Point p1)
    Creates a line from two points.
     
    Plane(Vector anorm, Point p0)
    Creates a plane from a normal vector and a point on the plane.
     
    Creates a copy of another point.
     
    Sphere(Point center, double radius)
    Creates a sphere with the given center and radius.
     
    Creates a vector from a point-like tuple.
  • Uses of Point in edu.cnu.mdi.view.demo.geoslice

    Methods in edu.cnu.mdi.view.demo.geoslice that return Point
    Modifier and Type
    Method
    Description
    static Point
    SliceProjection.cylindrical(double r, double phiDeg, double z)
    Convert cylindrical coordinates to a 3D Cartesian point.
    static Point
    SliceProjection.sliceToCartesian(Point2D.Double slicePoint, double phiDeg)
    Convert a 2D slice-coordinate point back into a 3D Cartesian point lying in the current constant-phi plane.
    Methods in edu.cnu.mdi.view.demo.geoslice with parameters of type Point
    Modifier and Type
    Method
    Description
    static double
    SliceProjection.phiDeg(Point p)
    Compute the spherical azimuthal angle phi in degrees.
    SliceProjection.projectToSlice(Point p, double phiDeg)
    Project a 3D point in the selected constant-phi plane into 2D slice coordinates.
    static double
    SliceProjection.radius(Point p)
    Compute the 3D radius from the origin.
    static double
    SliceProjection.thetaDeg(Point p)
    Compute the spherical polar angle theta in degrees.