MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / project

Function project

src/ifcopenshell-python/ifcopenshell/draw.py:348–351  ·  view source on GitHub ↗
(xy, z=0.0)

Source from the content-addressed store, hash-verified

346 m44 = numpy.linalg.inv(m44)
347
348 def project(xy, z=0.0):
349 xyzw = m44 @ numpy.array(xy + [z, 1.0])
350 xyzw[1] *= -1.0
351 return (m4 @ xyzw)[0:3]
352
353 def pythonize(arr):
354 return tuple(map(float, arr))

Callers 4

mainFunction · 0.70
apply_folded_layersetMethod · 0.50
apply_layersetMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected