This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.

Annotation.Geometry.Point

Create and manipulate points.

fromCoordinates : ( Float, Float ) -> Point

Create a Point with the given coordinates.

coordinates : Point -> ( Float, Float )

Get the point coordinates.

module Annotation.Geometry.Point
    exposing
        ( coordinates
        , fromCoordinates
        )

{-| Create and manipulate points.

@docs fromCoordinates, coordinates

-}

import Annotation.Geometry.Types exposing (..)
import OpenSolid.Point2d as Point2d exposing (Point2d)


{-| Create a Point with the given coordinates.
-}
fromCoordinates : ( Float, Float ) -> Point
fromCoordinates =
    Point2d.fromCoordinates


{-| Get the point coordinates.
-}
coordinates : Point -> ( Float, Float )
coordinates =
    Point2d.coordinates