MCPcopy 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

3import random
4
5def scale(vec, s):
6 vec[0] *= s
7 vec[1] *= s
8 vec[2] *= s
9 return vec
10
11
12random.seed(1)

Callers 1

PileScene.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected