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 generic 'extent' and 'breadth' ? functions #20

Closed
fryguybob opened this issue Aug 4, 2012 · 1 comment
Closed

Add generic 'extent' and 'breadth' ? functions #20

fryguybob opened this issue Aug 4, 2012 · 1 comment

Comments

@fryguybob
Copy link
Member

(Imported from http://code.google.com/p/diagrams/issues/detail?id=45. Original issue from byor...@gmail.com on September 3, 2011, 04:42:54 PM UTC)

Diagrams.TwoD.Util has function like extentX, extentY, height, and width; there ought to be generic (vector-space polymorphic) variants which take as an extra argument a vector specifying the direction in which to measure the extent/width. Then extentX etc. can just be specialized variants of the more generic function.

@fryguybob
Copy link
Member Author

(Imported. Original comment by byor...@gmail.com on November 1, 2011, 04:03:09 AM UTC)

Actually, a generic 'extent' function is a bit harder; what exactly should it return? A mapping from basis vectors to pairs of distances? I'm not convinced this is useful so I didn't add it. But I did add a generic 'breadth' function.

@ghost ghost assigned byorgey Aug 4, 2012
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

2 participants