Skip to main content

@mapgear/geoapps-core > MathHelper

MathHelper class

Several helper-methods to perform mathematical computations

Signature:
export declare class MathHelper 

Methods

MethodModifiersDescription
circularArea(radius)staticCompute the area of a circle
circumference(radius)staticCompute the circumference of a circle
diameter(radius)staticCompute diameter based on radius
round(value, decimals)staticRound the number with the specified amount of decimals
ScaledBorder(strokeWidth, pointSize, pointValue)Resizes border based on smaller display of a symbology item for svg circles. E.g. if item is shown at half size, so will the border be resized
ScaledRadius(segmentBorder)Resized inner radius base on stroke width for svg circles
sum(array)staticSummarize the length of the array