• About MapKit
    • Getting started
  • Map styles
  • MapKit SDK versions
  • Frequently asked questions
  • Contact us

Package com.yandex.mapkit.geometry

Class Segment

java.lang.Object
    ↳ com.yandex.mapkit.geometry.Segment

class Segment implements Serializable

A line between two points.

Summary

Constructors

Signature and Description

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

Segment()
Use constructor with parameters in your code.

Methods

Type and modifiers

Method and Description

Point

getStartPoint()
Starting point of the segment.

Point

getEndPoint()
End point of the segment.

void

serialize(com.yandex.runtime.bindings.Archive archive)

Constuctors

Segment

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


Segment

Segment()

Use constructor with parameters in your code.

This one is for bindings only!


Methods

getStartPoint

@NonNull
Point getStartPoint()

Starting point of the segment.


getEndPoint

@NonNull
Point getEndPoint()

End point of the segment.


serialize

@Override
void serialize(com.yandex.runtime.bindings.Archive archive)