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

Composer.Geometry.Point

A type to describe positions in the Cartesian coordinate system.

type alias Point = { x : Float, y : Float }
origin : Point

The origin (0, 0).

module Composer.Geometry.Point exposing (Point, origin)

{-| A type to describe positions in the Cartesian coordinate system.

@docs Point, origin

-}


{-| -}
type alias Point =
    { x : Float, y : Float }


{-| The origin (0, 0).
-}
origin : Point
origin =
    { x = 0, y = 0 }