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

Method reflected_direction

pvtrace/material/surface.py:37–55  ·  view source on GitHub ↗

Returns the reflected direction vector (ix, iy, iz). Parameters ---------- surface: Surface The surface object owned by the material. ray: Ray The incident ray. geometry: Geometry Th

(
        self, surface, ray, geometry, container, adjacent
    )

Source from the content-addressed store, hash-verified

35
36 @abc.abstractmethod
37 def reflected_direction(
38 self, surface, ray, geometry, container, adjacent
39 ) -> Tuple[float, float, float]:
40 """ Returns the reflected direction vector (ix, iy, iz).
41
42 Parameters
43 ----------
44 surface: Surface
45 The surface object owned by the material.
46 ray: Ray
47 The incident ray.
48 geometry: Geometry
49 The geometry being hit.
50 container: Node
51 The node containing the incident ray.
52 adjacent: Node
53 The node that would contain the ray if transmitted.
54 """
55 pass
56
57 @abc.abstractmethod
58 def transmitted_direction(

Callers 1

reflectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected