Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/InteractiveComputerGraphics/PositionBasedDynamics
/ scale
Function
scale
data/scenes/CarScene.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
s = 1
12
Callers
3
CarScene.py
File · 0.70
Transform
Class · 0.50
readScene
Function · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected