mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 09:31:20 -04:00
comments and descriptions
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
// Geometry and color helpers for top-down rover sensor map.
|
||||
// helpers
|
||||
// Purpose: Defines the helpers module and the local helpers/components used in this file.
|
||||
// Scope: Keeps behavior unchanged while isolating this concern into a clear, single-responsibility unit.
|
||||
export function clamp01(value) {
|
||||
return Math.max(0, Math.min(1, value));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user