LineSegment Structure

CVB.Net Documentation
A line segment between two points.

Namespace:  Stemmer.Cvb.Geometry2D
Assembly:  Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax

public struct LineSegment

The LineSegment type exposes the following members.

Constructors

  NameDescription
Public methodLineSegment(Point2D, Point2D)
Creates a line segment based on the two given points p0 and p1.
Public methodLineSegment(Int32, Int32, Int32, Int32)
Creates a line segment based on the given coordinates.
Top
Properties

  NameDescription
Public propertyLength
Gets the length of this line segment.
Public propertyP0
Start point.
Public propertyP1
End point.
Top
Methods

  NameDescription
Public methodCalculatePointsOnLine
Calculates all the points on this line.
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Top
See Also

Reference