MCPcopy Create free account
hub / github.com/danieljfarrell/pvtrace / to

Method to

pvtrace/geometry/intersection.py:27–33  ·  view source on GitHub ↗
(self, other_node: "Node")

Source from the content-addressed store, hash-verified

25 distance: float
26
27 def to(self, other_node: "Node") -> Intersection:
28 return Intersection(
29 coordsys=other_node,
30 point=self.coordsys.point_to_node(self.point, other_node),
31 hit=self.hit,
32 distance=self.distance,
33 )
34
35 def __eq__(self, other):
36 return all(

Callers 4

intersectionsMethod · 0.80
next_hitFunction · 0.80

Calls 2

IntersectionClass · 0.85
point_to_nodeMethod · 0.80