mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-12-29 16:16:02 +00:00
refactor: init
This commit is contained in:
25
src/pages/tools/number/generic-calc/data/sphereArea.ts
Normal file
25
src/pages/tools/number/generic-calc/data/sphereArea.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import type { GenericCalcType } from './types';
|
||||
|
||||
const areaSphere: GenericCalcType = {
|
||||
title: 'Area of a Sphere',
|
||||
name: 'area-sphere',
|
||||
description: 'Area of a Sphere',
|
||||
formula: 'A = 4 * pi * r**2',
|
||||
presets: [],
|
||||
variables: [
|
||||
{
|
||||
name: 'A',
|
||||
title: 'Area',
|
||||
unit: 'mm2'
|
||||
},
|
||||
{
|
||||
name: 'r',
|
||||
title: 'Radius',
|
||||
formula: 'r = sqrt(A/pi) / 2',
|
||||
unit: 'mm',
|
||||
default: 1
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export default areaSphere;
|
||||
Reference in New Issue
Block a user