MCPcopy
hub / github.com/CadQuery/cadquery / multiply

Method multiply

cadquery/occ_impl/geom.py:158–160  ·  view source on GitHub ↗

Return a copy multiplied by the provided scalar

(self, scale: float)

Source from the content-addressed store, hash-verified

156 return self.add(v)
157
158 def multiply(self, scale: float) -> "Vector":
159 """Return a copy multiplied by the provided scalar"""
160 return Vector(self.wrapped.Multiplied(scale))
161
162 def __mul__(self, scale: float) -> "Vector":
163 return self.multiply(scale)

Callers 13

__mul__Method · 0.95
__truediv__Method · 0.95
__rmul__Method · 0.95
rotatedMethod · 0.95
workplaneMethod · 0.45
sagittaArcMethod · 0.45
twistExtrudeMethod · 0.45
getFacesListMethod · 0.45
_extrudeMethod · 0.45
CombinedCenterMethod · 0.45
nFunction · 0.45

Calls 1

VectorClass · 0.85

Tested by

no test coverage detected