Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DjDeveloperr/deno_desktop
/ clamp
Method
clamp
examples/extern/gmath.bundle.js:699–701 ·
view source on GitHub ↗
(length)
Source
from the content-addressed store, hash-verified
697
return
new
Rad(Math.atan2(this.y, this.x));
698
}
699
clamp(length) {
700
return
this.normal().mul(length);
701
}
702
dot(other) {
703
const
{ x , y } = this.mul(other);
704
return
x + y;
Callers
nothing calls this directly
Calls
2
normal
Method · 0.95
mul
Method · 0.45
Tested by
no test coverage detected