Class Ellipse

  • All Implemented Interfaces:
    Geometry2D

    @Deprecated
    public class Ellipse
    extends Object
    implements Geometry2D
    Deprecated.
    Ellipse shape. From C++ gl.

    NOTE: This API is still in flux and might change in incompatible ways in the next release.

    • Constructor Detail

      • Ellipse

        public Ellipse()
        Deprecated.
      • Ellipse

        public Ellipse​(Point2D p1,
                       Point2D p2,
                       double angle)
        Deprecated.
        Constructor given bounding rectangle and a rotation.
    • Method Detail

      • intersect

        public int intersect​(LineSegment seg,
                             Point2D pt0,
                             Point2D pt1)
        Deprecated.
        Determines if a line segment intersects the ellipse and if so finds the point(s) of intersection.
        Parameters:
        seg - Line segment to test for intersection
        pt0 - OUT - intersection point (if it exists)
        pt1 - OUT - second intersection point (if it exists)
        Returns:
        Returns the number of intersection points (0, 1, or 2).
      • area

        public double area()
        Deprecated.
        Description copied from interface: Geometry2D
        Return the area
        Specified by:
        area in interface Geometry2D
      • contains

        public boolean contains​(Point2D pt)
        Deprecated.
        Description copied from interface: Geometry2D
        Does the shape contain the given point
        Specified by:
        contains in interface Geometry2D
      • translate

        public void translate​(Vector2D v)
        Deprecated.
        Description copied from interface: Geometry2D
        Translate according to the vector
        Specified by:
        translate in interface Geometry2D