Length of each side (must be positive).
Optional
height: numberOptional perpendicular height from base.
Optional
diagonals: [number, number]Optional [d1, d2] lengths of diagonals.
Gets the area of the rhombus. Uses base × height if height is available; otherwise uses (d1 × d2) / 2 if diagonals are provided.
Gets the perimeter of the rhombus.
Gets the side length of the rhombus.
Class representing a rhombus and provides geometric computations.