MCPcopy Create free account
hub / github.com/bengolder/python-geometry / __mul__

Method __mul__

geometry/vector.py:61–82  ·  view source on GitHub ↗

if with a number, then scalar multiplication of the vector, if with a Vector, then dot product, I guess for now, because the asterisk looks more like a dot than an X. >>> v2 = Vector3d(-4.0, 1.2, 3.5) >>> v1 = Vector3d(2.0, 1.1, 0.0) >>> v2

(self, other)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

dotMethod · 0.95

Tested by

no test coverage detected