ViaUtils.Math (via_utils v0.1.2) View Source

Documentation for UtilsMath.

Link to this section Summary

Link to this section Functions

Link to this function

apply_deadband(value, deadband)

View Source

Specs

apply_deadband(number(), number()) :: number()
Link to this function

constrain(x, min_value, max_value)

View Source

Specs

constrain(number(), number(), number()) :: number()
Link to this function

constrain?(x, min_value, max_value)

View Source

Specs

constrain?(number(), number(), number()) :: tuple()
Link to this function

constrain_angle_to_compass(angle)

View Source

Specs

constrain_angle_to_compass(number()) :: number()

Specs

deg2rad(number()) :: float()

Specs

hypot(tuple()) :: float()

Specs

hypot(number(), number()) :: float()

Specs

hypot3(number(), number(), number()) :: float()
Link to this function

in_range?(x, min_value, max_value)

View Source

Specs

in_range?(number(), number(), number()) :: boolean()
Link to this function

map_value(original_value, from_min_value, from_max_value, to_min_value, to_max_value)

View Source

Specs

map_value(number(), number(), number(), number(), number()) :: number()

Specs

rad2deg(number()) :: float()
Link to this function

rotate_point(dx, dy, theta_rotate)

View Source

Specs

rotate_point(float(), float(), float()) :: tuple()

Specs

sign(number()) :: integer()

Hello world.

Examples

iex> UtilsMath.hello()
:world

Specs

uint_from_fp(number(), integer()) :: binary()