API Reference

Detailed and full API reference helps you master Tekla development

This is the most recent version of Tekla Open API.
For older versions, please visit Tekla Warehouse.

LineSegment Methods

The LineSegment type exposes the following members.

Methods
  NameDescription
Public methodClone
Creates a copy of itself
Public methodEquals(Object)
Returns true if the objects are equal.
(Overrides ObjectEquals(Object).)
Public methodEquals(ICurve)
Returns true if the other curve is a line segment equal to this
Public methodGetDirectionVector
Returns a new unit direction vector of a line segment.
Public methodGetHashCode
Returns a hash code for a line segment. Notice, in extremely rare cases, you might not get the same hash code for two line segments even though they are considered equal! This should, however, happen only in extremely rare cases!
(Overrides ObjectGetHashCode.)
Public methodLength
Returns the length of a line segment.
Top
See Also