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 a docstring for Rect and its aliases #208

Merged
merged 8 commits into from
Feb 8, 2024
Merged
15 changes: 15 additions & 0 deletions src/primitives/rectangles.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,21 @@ end
##
# Constructors & typealiases

"""
const Rect{N,T} = HyperRectangle{N,T}

A rectangle in N dimensions, formally the caartesian product of intervals. See also [`HyperRectangle`](@ref). Its aliases are
putianyi889 marked this conversation as resolved.
Show resolved Hide resolved

|Dimensions|Generic |Float32 |Int |
|----------|-----------|----------|----------|
|Any |`Rect{N,T}`|`Rectf{N}`|`Recti{N}`|
|2 |`Rect2{T}` |`Rect2f` |`Rect2i` |
|3 |`Rect3{T}` |`Rect3f` |`Rect3i` |

and `RectT{T} = Rect{N,T} where {N}`.
putianyi889 marked this conversation as resolved.
Show resolved Hide resolved
"""
putianyi889 marked this conversation as resolved.
Show resolved Hide resolved
Rect, Rect2, Rect3, RectT, Rectf, Rect2f, Rect3f, Recti, Rect2i, Rect3i

const Rect{N,T} = HyperRectangle{N,T}
const Rect2{T} = Rect{2,T}
const Rect3{T} = Rect{3,T}
Expand Down
Loading