Point2D

data class Point2D(val x: Int, val y: Int) : Comparable<Point2D>

用于表示一个二维坐标

Constructors

Link copied to clipboard
constructor(x: Int, y: Int)

Functions

Link copied to clipboard
open operator override fun compareTo(other: Point2D): Int

Properties

Link copied to clipboard
val x: Int
Link copied to clipboard
val y: Int