matician - v2.0.0
    Preparing search index...

    Class Rhombus

    Class representing a rhombus and provides geometric computations.

    Index

    Constructors

    Accessors

    Constructors

    • Parameters

      • side: number

        Length of each side (must be positive).

      • Optionalheight: number

        Optional perpendicular height from base.

      • Optionaldiagonals: [number, number]

        Optional [d1, d2] lengths of diagonals.

      Returns Rhombus

    Accessors

    • get area(): number

      Gets the area of the rhombus. Uses base × height if height is available; otherwise uses (d1 × d2) / 2 if diagonals are provided.

      Returns number