Skip to content

Commit 752f30d

Browse files
committed
ConicalFrustum: change calls of {base,top}Area to {base,top}Radius in slantHeight
This was a typo.
1 parent 45eef91 commit 752f30d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/primitives/ConicalFrustum.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ topArea(x::ConicalFrustum) = pi * topRadius(x) ^ 2
140140
"""
141141
Computes the slant length of a conical frustum.
142142
"""
143-
slantLength(x::ConicalFrustum) = sqrt( ( baseArea(x) - topArea(x) ) ^ 2 + length(x) ^ 2 )
143+
slantLength(x::ConicalFrustum) = sqrt( ( baseRadius(x) - topRadius(x) ) ^ 2 + length(x) ^ 2 )
144144

145145
"""
146146
Computes the surface area of a frustum not including the top and bottom areas.

0 commit comments

Comments
 (0)