ShapeExtensionMethods

public static class ShapeExtensionMethods
Provides extension methods for various shape/geometry classes.

Methods

Compute the area of a cone.
public static double Area(
this Cone
cone,
Cone.
includeCap
If true, the flat cap is included.
)
Area of cone.
Compute the area of a cylinder.
public static double Area(
this Cylinder
cylinder,
Cylinder.
includeCaps
If true, the flat caps are included.
)
Area of cylinder.
Compute the area of a sphere.
public static double Area(
this Sphere
sphere
Cone.
)
Area of sphere.
Compute the area of a torus.
public static double Area(
this Torus
torus
Torus.
)
Area of torus.

Volume

#Example
Compute the volume of a cone.
public static double Volume(
this Cone
cone
Cone.
)
Volume of cone.

Volume

#Example
Compute the volume of a cylinder.
public static double Volume(
this Cylinder
cylinder
Cylinder.
)
Volume of cylinder.

Volume

#Example
Compute the volume of a sphere.
public static double Volume(
this Sphere
sphere
Cone.
)
Volume of sphere.

Volume

#Example
Compute the volume of a torus.
public static double Volume(
this Torus
torus
Torus.
)
Volume of torus.