geom2d-0.1.2.1: package for geometry in euklidean 2d space

Safe HaskellNone
LanguageHaskell2010

Geom2d.Point.Internal

Description

This module describes the internal structure of the Point type class and the Point' instance of said type class.

Synopsis

Documentation

newtype Point' a Source

This data type modells the the characteristics of vectors in 2 dimensional space. You should construct it via fromCoords.

Constructors

Point' (a, a) 

class Point p where Source

Methods

x :: p a -> a Source

y :: p a -> a Source

fromCoords :: a -> a -> p a Source

Instances

magnitude :: (Point p, Floating a, Num a) => p a -> a Source

Return the magnitude of a vector.