Interface ILcdEllipse

All Superinterfaces:
Cloneable, ILcdBounded, ILcdCloneable, ILcdShape, Serializable
All Known Subinterfaces:
ILcd2DEditableEllipse
All Known Implementing Classes:
TLcdCGMEllipse, TLcdDGNEllipse2D, TLcdLonLatEllipse, TLcdNVG15Arc, TLcdNVG15Ellipse, TLcdNVG20EllipticRing, TLcdXYEllipse

public interface ILcdEllipse extends ILcdShape
An ILcdEllipse is an ILcdShape that represents a general ellipse in the 2D space. The ellipse has a center, a semi-major axis with a rotation angle, and a semi-minor axis.

The parameters of the ellipse can only be read, not modified.

  • Field Details

    • MAJOR_RADIUS_CORNER

      static final int MAJOR_RADIUS_CORNER
      Specifies the end point of the major radius axis (at the rotation angle).
      See Also:
    • MINOR_RADIUS_CORNER

      static final int MINOR_RADIUS_CORNER
      Specifies the corner point of the minor radius axis (at the rotation angle + 90 degrees).
      See Also:
    • MAJOR_RADIUS_OPPOSITE_CORNER

      static final int MAJOR_RADIUS_OPPOSITE_CORNER
      Specifies the end point of the major radius axis at the rotation angle (at the rotation angle + 180 degrees).
      See Also:
    • MINOR_RADIUS_OPPOSITE_CORNER

      static final int MINOR_RADIUS_OPPOSITE_CORNER
      Specifies the corner point of the minor radius axis (at the rotation angle - 90 degrees).
      See Also:
  • Method Details

    • getCenter

      ILcdPoint getCenter()
      Returns the center of this ILcdEllipse.
      Returns:
      the center of this ILcdEllipse.
    • getA

      double getA()
      Returns the length of the semi-major axis.
      Returns:
      the length of the semi-major axis.
    • getB

      double getB()
      Returns the length of the semi-minor axis.
      Returns:
      the length of the semi-minor axis.
    • getRotAngle

      double getRotAngle()
      Returns the rotation angle of the major axis (in degrees). The angle is measured from 3 o'clock position, positive counter-clockwise.
      Returns:
      the rotation angle of the major axis (in degrees). The angle is measured from 3 o'clock position, positive counter-clockwise.
    • corner2DEditablePointSFCT

      void corner2DEditablePointSFCT(int aCorner, ILcd2DEditablePoint a2DEditablePointSFCT)
      Computes the position of the specified corner of this ILcdEllipse.
      Parameters:
      aCorner - the corner: ILcdEllipse.MAJOR_RADIUS_CORNER, ILcdEllipse.MINOR_RADIUS_CORNER, ILcdEllipse.MAJOR_RADIUS_OPPOSITE_CORNER, ILcdEllipse.MINOR_RADIUS_OPPOSITE_CORNER.
      a2DEditablePointSFCT - an ILcd2DEditablePoint into which the result is written as a side-effect.