Class Segment

com.yandex.mapkit.geometry

java.lang.Object ⇽ Segment

public class Segment

A line between two points.

Constructors

Segment(@NonNull Point startPoint, @NonNull Point endPoint)
Segment()

Use constructor with parameters in your code.

Methods

Point getEndPoint()

End point of the segment.

Point getStartPoint()

Starting point of the segment.

void serialize(Archive archive)

Constructor Detail

Segment

public Segment (@NonNull Point startPoint, @NonNull Point endPoint)

Segment

public Segment ()

Use constructor with parameters in your code.

This one is for bindings only!

Method Detail

getEndPoint

public Point getEndPoint ()

End point of the segment.

getStartPoint

public Point getStartPoint ()

Starting point of the segment.

serialize

public void serialize (Archive archive)