Class TLcdLonLatCompositeRing

java.lang.Object
com.luciad.shape.ALcdShape
com.luciad.shape.TLcdCompositeCurve
com.luciad.shape.shape2D.TLcdLonLatCompositeRing
All Implemented Interfaces:
ILcdBounded, ILcdCompositeCurve, ILcdCurve, ILcdEditableCompositeCurve, ILcdRing, ILcdShape, ILcdCache, ILcdCloneable, Serializable, Cloneable

public class TLcdLonLatCompositeRing extends TLcdCompositeCurve implements ILcdRing
This class provides an implementation of an ILcdCompositeCurve that is also an ILcdRing, in the geodetic space. In addition to the properties defined by ILcdEditableCompositeCurve, a TLcdLonLatCompositeRing has an ellipsoid on which it lives.

All longitude/latitude coordinates are expressed in degrees.

This class is thread-safe for concurrent read-only access of its contents. For read-write access, external locking must be used. Such locking is typically done at the model level.

Since:
9.0
See Also:
  • Constructor Details

    • TLcdLonLatCompositeRing

      public TLcdLonLatCompositeRing(ILcdEllipsoid aEllipsoid)
  • Method Details

    • getEndTangent2D

      public double getEndTangent2D()
      Description copied from interface: ILcdCurve
      Returns the angle of the curve's tangent at the end point, in degrees counterclockwise from the direction at 3 o'clock.

      The tangent orientation is from the end point, away from the curve before it.

      This is the same as getTangent2D(1).

      Specified by:
      getEndTangent2D in interface ILcdCurve
      Overrides:
      getEndTangent2D in class TLcdCompositeCurve
      Returns:
      the curve's angle in the end point
    • getLength2D

      public double getLength2D(double aParam1, double aParam2)
      Description copied from interface: ILcdCurve
      Returns the length between two points of the curve, defined by the given parameters.
      • When aParam1 == aParam2, the length is 0.
      • When aParam1 == 0 and aParam2 == 1, the length is the whole length of the curve.
      • When aParam1 > aParam2, the length is (aParam1 to 1) + (0 to aParam2).
      Specified by:
      getLength2D in interface ILcdCurve
      Overrides:
      getLength2D in class TLcdCompositeCurve
      Parameters:
      aParam1 - a value of the closed interval [0,1]
      aParam2 - a value of the closed interval [0,1]
      Returns:
      the length of the curve.
    • contains2D

      public boolean contains2D(double aX, double aY)
      Description copied from interface: ILcdShape
      Checks whether this ILcdShape contains the given point in the 2D space. Only the first two dimensions of the ILcdShape are considered.
      Specified by:
      contains2D in interface ILcdShape
      Overrides:
      contains2D in class TLcdCompositeCurve
      Parameters:
      aX - the x coordinate of the point.
      aY - the y coordinate of the point.
      Returns:
      the boolean result of the containment test.
    • clone

      public Object clone()
      Description copied from class: ALcdShape
      Creates and returns a copy of this object, by delegating to Object.clone(). Extensions should delegate to this implementation with super.clone(), in order to create an object instance of the right type, with all fields copied. They then should explicitly clone any non-primitive fields for which a deeper clone is required.
      Specified by:
      clone in interface ILcdCloneable
      Overrides:
      clone in class TLcdCompositeCurve
      See Also: