---------------------------------------------------------------------------- Private Code ----------------------------------------------------------------------------*/ ---------------------------------------------------------------------------*/ * This routine computes the midpoint between Start and * End to obtain the x,y position of the outline-feature. It * also computes the d
| 91 | * @note History: 11/13/90, DSJ, Created. |
| 92 | */ |
| 93 | void AddOutlineFeatureToSet(FPOINT *Start, |
| 94 | FPOINT *End, |
| 95 | FEATURE_SET FeatureSet) { |
| 96 | FEATURE Feature; |
| 97 | |
| 98 | Feature = NewFeature(&OutlineFeatDesc); |
| 99 | Feature->Params[OutlineFeatDir] = NormalizedAngleFrom(Start, End, 1.0); |
| 100 | Feature->Params[OutlineFeatX] = AverageOf(Start->x, End->x); |
| 101 | Feature->Params[OutlineFeatY] = AverageOf(Start->y, End->y); |
| 102 | Feature->Params[OutlineFeatLength] = DistanceBetween(*Start, *End); |
| 103 | AddFeature(FeatureSet, Feature); |
| 104 | |
| 105 | } /* AddOutlineFeatureToSet */ |
| 106 | |
| 107 | |
| 108 | /*---------------------------------------------------------------------------*/ |
no test coverage detected