sin

open fun sin(@NonNull number: Expression): Expression

Returns the sine of the input.

Example usage:


CircleLayer circleLayer = new CircleLayer("layer-id", "source-id");
circleLayer.setProperties(
    circleRadius(sin(pi()))
);

Return

expression

Parameters

number

the number to calculate the sine for

See also

<a href="https://maplibre.org/maplibre-style-spec/expressions/#sin">Style specification</a>

open fun sin(@NonNull number: Number): Expression

Returns the sine of the input.

Example usage:


CircleLayer circleLayer = new CircleLayer("layer-id", "source-id");
circleLayer.setProperties(
    circleRadius(sin(90.0f))
);

Return

expression

Parameters

number

the number to calculate the sine for

See also

<a href="https://maplibre.org/maplibre-style-spec/expressions/#sin">Style specification</a>