package com.rugvedsarika.landarea.logic

import kotlin.math.PI

object GeometryCalculator {

    fun calculateRectangle(length: Double, width: Double): Double = length * width

    fun calculateTriangle(base: Double, height: Double): Double = 0.5 * base * height

    fun calculateTrapezium(sideA: Double, sideB: Double, height: Double): Double = 
        0.5 * (sideA + sideB) * height

    fun calculateCircle(radius: Double): Double = PI * radius * radius

    fun calculateEllipse(axisA: Double, axisB: Double): Double = PI * axisA * axisB
}
