Class PolylineVertex
Last update: 09.03.2026Namespace: OpenTD
Assembly: OpenTD.dll
Describes a vertex and attached line segment in a Polyline.
[DataContract]
public class PolylineVertex
Inheritance
Inherited Members
object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()
Constructors
PolylineVertex(double, double, double, double, double, int)
public PolylineVertex(double x, double y, double bulge = 0, double startWidth = 0, double endWidth = 0, int vertexIdentifier = 0)
Parameters
x double
y double
bulge double
startWidth double
endWidth double
vertexIdentifier int
PolylineVertex()
public PolylineVertex()
Properties
Bulge
Tangent of 1/4 of the included angle of the arc. Positive for arcs that go counter-clockwise from the start point to end point. Straight segments have a bulge of 0. Semicircles have a bulge of +/-1.
[DataMember]
public double Bulge { get; set; }
Property Value
EndWidth
The ending width of the line segment, in-plane with the polyline.
[DataMember]
public DimensionalIfPositive<ModelLength> EndWidth { get; set; }
Property Value
DimensionalIfPositive<ModelLength>
Location
[DataMember]
public Point2d Location { get; set; }
Property Value
StartWidth
The starting width of the line segment, in-plane with the polyline.
[DataMember]
public DimensionalIfPositive<ModelLength> StartWidth { get; set; }
Property Value
DimensionalIfPositive<ModelLength>
VertexIdentifier
Added for completeness. Do not use in most cases.
[DataMember]
public int VertexIdentifier { get; set; }