Hexworks / mixite

A GUI agnostic hexagonal grid library. Supports a multitude of grid layouts including hexagonal, triangular, rectangular and more.
Apache License 2.0
191 stars 31 forks source link

Deprecate/remove Hexagon.vertices #53

Open drekbour opened 4 years ago

drekbour commented 4 years ago

Every Hexagon contains 6 Points then 12 "vertices" which are just the x,y of each Point. Get the Point...

    /**
     * Returns a list containing the [Point]s of this [Hexagon].
     */
    val points: List<Point>

    /**
     * Returns an array of the vertices of this [Hexagon].
     */
    val vertices: List<Double>

Perhaps it was meant to be an Array of primitive types? (doc clearly says array in contradiction to the actual type).