Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

# MgLinearSegment Class Reference
[MgLinearSegment]

MgLinearSegment is a geometry component used in the construction of MgCurveString geometries and MgCurveRing geometry components. More...

Inherits MgCurveSegment.

List of all members.

## Public Member Functions
virtual MgGeometricEntity * | Copy ()
virtual INT32 | GetComponentType ()
virtual MgCoordinateIterator * | GetCoordinates ()
virtual INT32 | GetDimension ()
virtual MgCoordinate * | GetEndCoordinate ()
virtual MgCoordinate * | GetStartCoordinate ()
virtual bool | IsClosed ()
virtual bool | IsEmpty ()
virtual MgGeometricEntity * | Transform (MgTransform *transform)
| Returns a transformed copy of this geometric entity.

## Detailed Description

MgLinearSegment is a geometry component used in the construction of MgCurveString geometries and MgCurveRing geometry components.

Remarks:
  It is a curve segment where the curves connecting the coordinates are interpolated linearly. It is constructed by calling a non-static method MgGeometryFactory::CreateLinearSegment() and, once constructed, is immutable. See MgCurveString Class for example code showing the construction of an MgLinearSegment instance.

Comments or suggestions? Send us feedback.