shapes-0.1.0.0: physics engine and other tools for 2D shapes

Safe HaskellNone
LanguageHaskell2010

Physics.Contact.Circle

Synopsis

Documentation

data Circle Source #

Constructors

Circle 

Fields

Instances

Show Circle Source # 
Generic Circle Source # 

Associated Types

type Rep Circle :: * -> * #

Methods

from :: Circle -> Rep Circle x #

to :: Rep Circle x -> Circle #

NFData Circle Source # 

Methods

rnf :: Circle -> () #

type Rep Circle Source # 
type Rep Circle = D1 * (MetaData "Circle" "Physics.Contact.Circle" "shapes-0.1.0.0-E6UUiYRpOc15rGTlEn6KOE" False) (C1 * (MetaCons "Circle" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_circleCenter") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * P2)) (S1 * (MetaSel (Just Symbol "_circleRadius") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Double))))

data Contact Source #

Constructors

Contact 

Instances

Show Contact Source # 
Generic Contact Source # 

Associated Types

type Rep Contact :: * -> * #

Methods

from :: Contact -> Rep Contact x #

to :: Rep Contact x -> Contact #

NFData Contact Source # 

Methods

rnf :: Contact -> () #

type Rep Contact Source # 
type Rep Contact = D1 * (MetaData "Contact" "Physics.Contact.Circle" "shapes-0.1.0.0-E6UUiYRpOc15rGTlEn6KOE" False) (C1 * (MetaCons "Contact" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_contactCenter") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * P2)) ((:*:) * (S1 * (MetaSel (Just Symbol "_contactDepth") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Double)) (S1 * (MetaSel (Just Symbol "_contactNormal") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * V2)))))

contact Source #

Arguments

:: Circle

the penetratee

-> Circle

the penetrator

-> Maybe Contact 

The normal points out of the "penetrated" circle.