Skip to content

Geometry

It generates various random geometric data.

Example

(ns your-app.geometry
(:require [dataimitator.geometry.core :refer :all]))
;; Calculate properties of a circle with radius 5
(def circle-props (calculate-circle 5))
(println "Circle Properties:" circle-props)
;; Calculate properties of a rectangle with length 5 and width 3
(def rectangle-props (calculate-rectangle 5 3))
(println "Rectangle Properties:" rectangle-props)
;; Calculate properties of a square with side length 4
(def square-props (calculate-square 4))
(println "Square Properties:" square-props)
;; Calculate properties of a cube with side length 4
(def cube-props (calculate-cube 4))
(println "Cube Properties:" cube-props)
;; Calculate properties of a triangle with base 6 and height 4
(def triangle-props (calculate-triangle 6 4))
(println "Triangle Properties:" triangle-props)
;; Generate a random shape with random dimensions and calculate its properties
(def random-shape-props (random-shape))
(println "Random Shape Properties:" random-shape-props)