tan

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

Returns the tangent of the input.

Example usage:


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

Return

expression

Parameters

number

the number to calculate the tangent for

See also

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

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

Returns the tangent of the input.

Example usage:


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

Return

expression

Parameters

number

the number to calculate the tangent for

See also

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