Appearance
aninest root / Vec2 / mapVec
function mapVec(v, func): Vec2
Calls a function func on each component of a vector, creating a new vector from the result of each function call.
• v: Vec2
Vec2
• func
A new vector.
Utils/vec2.ts:213