MCPcopy Create free account

hub / github.com/cstef7/rendeer / functions

Functions23 in github.com/cstef7/rendeer

↓ 24 callersFunctionvectorLerpRound
(v1, v2, t)
src/rendeer/rendeer.py:206
↓ 13 callersFunctioncolorLerp
(color1, color2, t)
src/rendeer/rendeer.py:198
↓ 12 callersFunctiondraw_line
Bresenham's Line Algorithm Produces a list of tuples from start and end >>> points1 = get_line((0, 0), (3, 4)) >>> points2 = get_line((3
src/rendeer/rendeer.py:218
↓ 8 callersFunctioncalculateScreenPoint
(v)
src/rendeer/rendeer.py:116
↓ 7 callersFunctiondistance_squared
Return the distance squaredbetween two vectors using the pythagorean theory
src/rendeer/rendeer.py:153
↓ 6 callersFunctionabs
(x)
src/rendeer/intersection.py:28
↓ 6 callersFunctionangleBetweenVectors
Returns the angle between two vectors, in degreesToRadians
src/rendeer/rendeer.py:171
↓ 6 callersFunctiondegreesToRadians
Simple degrees-to-radians converter
src/rendeer/rendeer.py:159
↓ 6 callersFunctionvectorLerp
(v1, v2, t)
src/rendeer/rendeer.py:210
↓ 4 callersFunctiondistance
Return the distance between two vectors using the pythagorean theory
src/rendeer/rendeer.py:144
↓ 3 callersFunctioncenter
Returns the center of a polygon using the arithmetic mean
src/rendeer/rendeer.py:21
↓ 2 callersFunctionbezierCoeffs
(P0, P1, P2, P3)
src/rendeer/intersection.py:107
↓ 2 callersFunctionrotatePoints
(vertices, centerVector, yRot, xRot, zRot)
src/rendeer/rendeer.py:37
↓ 2 callersFunctionsgn
(x)
src/rendeer/intersection.py:21
↓ 2 callersFunctionsubstract
(v1, v2)
src/rendeer/rendeer.py:112
↓ 1 callersFunctionadd
(v1, v2)
src/rendeer/rendeer.py:108
↓ 1 callersFunctioncalculateSurfaceNormal
(triangle)
src/rendeer/rendeer.py:133
↓ 1 callersFunctioncubicRoots
(P)
src/rendeer/intersection.py:35
↓ 1 callersFunctionradiansToDegrees
Simple radians-to-degrees converter
src/rendeer/rendeer.py:165
↓ 1 callersFunctionsortSpecial
(a)
src/rendeer/intersection.py:88
FunctioncomputeIntersections
(px, py, lx, ly)
src/rendeer/intersection.py:116
Functionmain
(args=None)
src/rendeer/rendeer.py:17
FunctionsortFacesByDistance
Uses Insertion Sort to sort all the faces by the distance from the center to the camera
src/rendeer/rendeer.py:183