Struct Segment
Structure defining a segment curve in three-dimensional euclidean space.
It is defined by a start point and an end point (finite length).
Namespace: BRIDGES.Geometry.Euclidean3D
Assembly: BRIDGES.dll
Syntax
public struct Segment
Remarks
For an infinite line, refer to Line.
Constructors
| Improve this Doc View SourceSegment(Point, Point)
Declaration
public Segment(Point start, Point end)
Parameters
Type | Name | Description |
---|---|---|
Point | start | |
Point | end |
Remarks
For an infinite line, refer to Line.
Segment(Segment)
Declaration
public Segment(Segment segment)
Parameters
Type | Name | Description |
---|---|---|
Segment | segment | Segment to copy. |
Remarks
For an infinite line, refer to Line.
Properties
| Improve this Doc View SourceDomainEnd
Structure defining a segment curve in three-dimensional euclidean space.
It is defined by a start point and an end point (finite length).
Declaration
public readonly double DomainEnd { get; }
Property Value
Type | Description |
---|---|
Double |
Remarks
For an infinite line, refer to Line.
DomainStart
Structure defining a segment curve in three-dimensional euclidean space.
It is defined by a start point and an end point (finite length).
Declaration
public readonly double DomainStart { get; }
Property Value
Type | Description |
---|---|
Double |
Remarks
For an infinite line, refer to Line.
EndPoint
Structure defining a segment curve in three-dimensional euclidean space.
It is defined by a start point and an end point (finite length).
Declaration
public Point EndPoint { get; set; }
Property Value
Type | Description |
---|---|
Point |
Remarks
For an infinite line, refer to Line.
IsClosed
Structure defining a segment curve in three-dimensional euclidean space.
It is defined by a start point and an end point (finite length).
Declaration
public readonly bool IsClosed { get; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
For an infinite line, refer to Line.
StartPoint
Structure defining a segment curve in three-dimensional euclidean space.
It is defined by a start point and an end point (finite length).
Declaration
public Point StartPoint { get; set; }
Property Value
Type | Description |
---|---|
Point |
Remarks
For an infinite line, refer to Line.
Methods
| Improve this Doc View SourceEquals(Segment)
Declaration
public bool Equals(Segment other)
Parameters
Type | Name | Description |
---|---|---|
Segment | other | Segment to compare with. |
Returns
Type | Description |
---|---|
Boolean | true if the two Segment are equal, false otherwise. |
Remarks
| Improve this Doc View SourceEquals(Object)
Structure defining a segment curve in three-dimensional euclidean space.
It is defined by a start point and an end point (finite length).
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Remarks
For an infinite line, refer to Line.
Flip()
Flips the current Segment by inverting the StartPoint and the EndPoint.
Declaration
public void Flip()
Remarks
For an infinite line, refer to Line.
GetHashCode()
Structure defining a segment curve in three-dimensional euclidean space.
It is defined by a start point and an end point (finite length).
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Remarks
For an infinite line, refer to Line.
Length()
Computes the length of the current Segment.
Declaration
public double Length()
Returns
Type | Description |
---|---|
Double | The value corresponding to the Segment's length. |
Remarks
For an infinite line, refer to Line.
PointAt(Double, CurveParameterFormat)
Evaluates the current Segment at the given parameter.
Declaration
public Point PointAt(double parameter, CurveParameterFormat format)
Parameters
Type | Name | Description |
---|---|---|
Double | parameter | Value of the parameter. |
CurveParameterFormat | format | Format of the parameter. |
Returns
Type | Description |
---|---|
Point |
Remarks
For an infinite line, refer to Line.
ToString()
Structure defining a segment curve in three-dimensional euclidean space.
It is defined by a start point and an end point (finite length).
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |
Remarks
For an infinite line, refer to Line.