-
-
Notifications
You must be signed in to change notification settings - Fork 55
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 a docstring for Rect
and its aliases
#208
Conversation
Looks good to me! |
Thank you! I'm thinking to add a float64 alias here as well here. |
|
Yeah, that was my favorite before people didn't want it for Point... Its a bit confusing because of |
Maybe |
Co-authored-by: Jeremie Knuesel <knuesel@gmail.com>
Is the concern that "Rect2d" reads like "2 dimensional rect"? I thought the same but I found it quite easy to get used to
I suspect these two points are why most APIs use |
Valid points, I agree |
I think I like Rect2d more than Rect2f64 and Rectd2. Looks cleaner and is easier to type. The lower case d also kind of matches glsl/opengl and glm's dvec types. |
Is there stuff exported from Makie where the suffix 2d is currently used to mean two-dimensional? Edit: Not much julia> filter(x -> endswith(string(x), r"2[dD]"), names(CairoMakie))
2-element Vector{Symbol}:
:Camera2D
:cam2d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one thing to clarify for this PR: do we want to document RectT
, or is it rather meant as internal? It's not exported and I don't think I've seen it in user code so far.
I think it's internal, but we could still mention it shortly? |
Co-authored-by: Jeremie Knuesel <knuesel@gmail.com>
Co-authored-by: Jeremie Knuesel <knuesel@gmail.com>
I guess this doc PR can be merged and new aliases can be introduced in a new PR if desired? |
Yeah I was thinking about it and i was leaning towards merging it now :) |
No description provided.