menu
tremble package
documentation
vec2.dart
Vec2
reflect method
reflect method
dark_mode
light_mode
reflect
method
void
reflect
(
Vec2
normal
)
Implementation
void reflect(Vec2 normal) { final d = 2 * dot(normal); x -= d * normal.x; y -= d * normal.y; }
tremble package
documentation
vec2
Vec2
reflect method
Vec2 class