Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shearing transformations to standard library #19

Closed
fryguybob opened this issue Aug 4, 2012 · 0 comments
Closed

Add shearing transformations to standard library #19

fryguybob opened this issue Aug 4, 2012 · 0 comments

Comments

@fryguybob
Copy link
Member

(Imported from http://code.google.com/p/diagrams/issues/detail?id=40. Original issue from byor...@gmail.com on August 16, 2011, 08:24:59 PM UTC)

Diagrams.TwoD.Transform ought to include some functions to perform shears. I suppose something like

{{{
-- | @shearx d@ is the linear transformation which is the identity on
-- y coordinates and sends @(0,1)@ to @(d,1)@.
shearX :: (Transformable t, V t ~ R2) => Double -> t -> t
}}}

etc., should do nicely.

Unfortunately we run into linguistic trouble here with the noun/verb scheme for naming transformation combinators: "shear" is both noun and verb. I suppose we could get away with "shearing".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant