Skip to content

Commit cd783d8

Browse files
committed
Specialize rect area function
1 parent f936767 commit cd783d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/primitives/rectangles.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ width(prim::Rect) = prim.widths[1]
165165
height(prim::Rect) = prim.widths[2]
166166

167167
volume(prim::HyperRectangle) = prod(prim.widths)
168-
area(prim::Rect) = volume(prim)
168+
area(prim::Rect2D) = volume(prim)
169169

170170
"""
171171
split(rectangle, axis, value)

0 commit comments

Comments
 (0)