# WFMath_Segment man page

WFMath::Segment< dim > — A line segment embedded in dim dimensions.

## Synopsis

`#include <segment.h>`

### Public Member Functions

Segment()construct an uninitialized segmentSegment(constPoint< dim > &p1, constPoint< dim > &p2)construct a segment with endpoints p1 and p2Segment(constSegment&s)construct a copy of a segment

constPoint< dim > &endpoint(const int i) constget one end of the segmentPoint< dim > &endpoint(const int i)get one end of the segment

## Detailed Description

### template<int dim = 3>

class WFMath::Segment< dim >" A line segment embedded in dim dimensions.

This class implements the full shape interface, as described in the fake class **Shape**.

## Author

Generated automatically by Doxygen for WFMath from the source code.