matician - v2.0.0
    Preparing search index...

    Class Cone

    Represents a right circular cone.

    Index

    Constructors

    • Parameters

      • r: number

        Radius of the base (must be positive)

      • h: number

        Height of the cone (must be positive)

      Returns Cone

    Accessors

    • get slantHeight(): number

      Calculates the slant height: √(r² + h²)

      Returns number

    • get surfaceArea(): number

      Calculates the surface area: A = πr² + πrl

      Returns number