Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/InteractiveComputerGraphics/PositionBasedDynamics
/ scale
Function
scale
data/scenes/PileScene.py:5–9 ·
view source on GitHub ↗
(vec, s)
Source
from the content-addressed store, hash-verified
3
import
random
4
5
def
scale(vec, s):
6
vec[0] *= s
7
vec[1] *= s
8
vec[2] *= s
9
return
vec
10
11
12
random.seed(1)
Callers
1
PileScene.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected