Enhanced C#
Language of your choice: library documentation
Public fields | Properties | Public Member Functions | Static Public Member Functions | List of all members
Loyc.Geometry.LineSegment< T > Struct Template Reference

Holds a 2D line segment. More...


Source file:

Remarks

Holds a 2D line segment.

Template Parameters
TCoordinate type
Type Constraints
T :IConvertible 
T :IEquatable<T> 

Public fields

Point< T > A
 
Point< T > B
 

Properties

LineSegment< T > Reversed [get]
 

Public Member Functions

 LineSegment (Point< T > a, Point< T > b)
 
 LineSegment (T ax, T ay, T bx, T by)
 
override string ToString ()
 

Static Public Member Functions

static implicit operator Pair< Point< T >, Point< T >> (LineSegment< T > seg)
 
static implicit operator LineSegment< T > (Pair< Point< T >, Point< T >> seg)
 
static operator LineSegment< int > (LineSegment< T > seg)
 
static operator LineSegment< long > (LineSegment< T > seg)
 
static operator LineSegment< float > (LineSegment< T > seg)
 
static operator LineSegment< double > (LineSegment< T > seg)