MCPcopy Create free account
hub / github.com/pyscript/pyscript / dot3

Method dot3

core/tests/manual/issue-2302/perlin_py.py:17–18  ·  view source on GitHub ↗
(self, x, y, z)

Source from the content-addressed store, hash-verified

15 return self.x * x + self.y * y
16
17 def dot3(self, x, y, z):
18 return self.x * x + self.y * y + self.z * z
19
20 def to_js(self, scale=1.0):
21 return new(THREE.Vector3, self.x * scale, self.y * scale, self.z * scale)

Callers 1

perlin3Function · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected