Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/fogleman/fauxgl
/ functions
Functions
285 in github.com/fogleman/fauxgl
⨍
Functions
285
◇
Types & classes
41
↓ 65 callers
Function
V
(x, y, z float64)
vector.go:12
↓ 36 callers
Method
Normalize
()
vector.go:83
↓ 32 callers
Function
NewTriangleForPoints
(p1, p2, p3 Vector)
triangle.go:13
↓ 29 callers
Method
MulScalar
(b float64)
color.go:101
↓ 24 callers
Method
Sub
(b Color)
color.go:81
↓ 23 callers
Method
Add
(b *Mesh)
mesh.go:49
↓ 22 callers
Method
Dot
(b Vector)
vector.go:72
↓ 21 callers
Method
Max
(b Color)
color.go:117
↓ 17 callers
Function
NewTriangleMesh
(triangles []*Triangle)
mesh.go:23
↓ 16 callers
Function
NewLineForPoints
(p1, p2 Vector)
line.go:11
↓ 15 callers
Method
DrawMesh
(mesh *Mesh)
context.go:435
↓ 15 callers
Method
Min
(b Color)
color.go:113
↓ 15 callers
Function
NewTriangle
(v1, v2, v3 Vertex)
triangle.go:7
↓ 14 callers
Function
HexColor
(x string)
color.go:31
↓ 14 callers
Function
LookAt
(eye, center, up Vector)
matrix.go:95
↓ 14 callers
Method
Vector
()
vector.go:208
↓ 13 callers
Method
Add
(other RasterizeInfo)
context.go:33
↓ 13 callers
Method
Image
()
context.go:83
↓ 13 callers
Method
MulScalar
(b float64)
vector.go:128
↓ 13 callers
Function
NewContext
(width, height int)
context.go:60
↓ 13 callers
Function
SavePNG
(path string, im image.Image)
util.go:56
↓ 13 callers
Method
Size
()
box.go:45
↓ 12 callers
Method
Add
(b Vector)
vector.go:96
↓ 12 callers
Function
NewPhongShader
(matrix Matrix, lightDirection, cameraPosition Vector)
shader.go:61
↓ 12 callers
Method
Perspective
(fovy, aspect, near, far float64)
matrix.go:167
↓ 12 callers
Function
Radians
(degrees float64)
util.go:15
↓ 11 callers
Method
Distance
(b Vector)
vector.go:52
↓ 11 callers
Function
Gray
(x float64)
color.go:21
↓ 10 callers
Method
ClearColorBufferWith
(color Color)
context.go:119
↓ 10 callers
Method
DivScalar
(b float64)
color.go:105
↓ 10 callers
Function
InterpolateVertexes
(v1, v2, v3 Vertex, b VectorW)
vertex.go:18
↓ 10 callers
Method
MulPosition
(b Vector)
matrix.go:209
↓ 10 callers
Method
Transform
(m Matrix)
box.go:91
↓ 9 callers
Method
BiUnitCube
()
mesh.go:127
↓ 9 callers
Method
Floor
()
vector.go:148
↓ 9 callers
Method
Mul
(b Matrix)
matrix.go:188
↓ 9 callers
Function
makeFloat
(b []byte)
stl.go:82
↓ 8 callers
Method
Add
(b Color)
color.go:77
↓ 8 callers
Method
Normal
()
triangle.go:33
↓ 8 callers
Method
Sub
(b Vector)
vector.go:100
↓ 7 callers
Method
Add
(d Cell)
examples/pipes.go:47
↓ 7 callers
Method
Cross
(b Vector)
vector.go:76
↓ 7 callers
Function
timed
(name string)
examples/magica.go:28
↓ 6 callers
Function
LoadMesh
(path string)
util.go:31
↓ 6 callers
Function
LoadSTL
(path string)
stl.go:23
↓ 6 callers
Function
timed
(name string)
examples/silhouette.go:27
↓ 6 callers
Function
timed
(name string)
examples/dragon.go:32
↓ 5 callers
Method
FixNormals
()
triangle.go:46
↓ 5 callers
Function
MakeColor
(c color.Color)
color.go:25
↓ 5 callers
Method
MulDirection
(b Vector)
matrix.go:224
↓ 5 callers
Method
MulPositionW
(b Vector)
matrix.go:216
↓ 5 callers
Method
Negate
()
vector.go:88
↓ 5 callers
Function
NewSolidColorShader
(matrix Matrix, color Color)
shader.go:16
↓ 5 callers
Method
Outside
()
vertex.go:14
↓ 5 callers
Function
Rotate
(v Vector, a float64)
matrix.go:36
↓ 5 callers
Function
Scale
(v Vector)
matrix.go:28
↓ 5 callers
Method
Vertex
(Vertex)
shader.go:6
↓ 5 callers
Method
pointInFront
(v VectorW)
clipping.go:16
↓ 4 callers
Method
BoundingBox
()
mesh.go:153
↓ 4 callers
Method
Ceil
()
vector.go:152
↓ 4 callers
Function
Clamp
(x, lo, hi float64)
util.go:74
↓ 4 callers
Method
Copy
()
mesh.go:35
↓ 4 callers
Function
LatLngToXYZ
(lat, lng float64)
util.go:23
↓ 4 callers
Function
LoadOBJ
(path string)
obj.go:19
↓ 4 callers
Method
MoveTo
(position, anchor Vector)
mesh.go:132
↓ 4 callers
Function
NewLineMesh
(lines []*Line)
mesh.go:27
↓ 4 callers
Function
ParseFloats
(items []string)
util.go:65
↓ 4 callers
Method
Pow
(b float64)
color.go:109
↓ 4 callers
Method
SaveSTL
(path string)
mesh.go:203
↓ 4 callers
Method
Scale
(v Vector)
matrix.go:147
↓ 4 callers
Method
SmoothNormals
()
mesh.go:105
↓ 4 callers
Method
SmoothNormalsThreshold
(radians float64)
mesh.go:90
↓ 4 callers
Function
Translate
(v Vector)
matrix.go:20
↓ 4 callers
Method
Translate
(v Vector)
box.go:60
↓ 4 callers
Method
dirty
()
mesh.go:31
↓ 4 callers
Function
edge
(a, b, c Vector)
context.go:147
↓ 4 callers
Method
intersectSegment
(v0, v1 VectorW)
clipping.go:20
↓ 4 callers
Method
line
(v0, v1 Vertex, s0, s1 Vector)
context.go:283
↓ 3 callers
Method
Add
(b VectorW)
vector.go:221
↓ 3 callers
Method
Area
()
triangle.go:39
↓ 3 callers
Function
Barycentric
(p1, p2, p3, p Vector)
vertex.go:81
↓ 3 callers
Method
BoundingBox
()
line.go:17
↓ 3 callers
Method
ClearColorBuffer
()
context.go:133
↓ 3 callers
Method
ClearDepthBuffer
()
context.go:143
↓ 3 callers
Method
Extend
(b Box)
box.go:49
↓ 3 callers
Method
FitInside
(box Box, anchor Vector)
mesh.go:142
↓ 3 callers
Function
Identity
()
matrix.go:12
↓ 3 callers
Function
InterpolateVectors
(v1, v2, v3 Vector, b VectorW)
vertex.go:65
↓ 3 callers
Function
MakeEdge
(a, b Vector)
examples/silhouette.go:86
↓ 3 callers
Method
Mul
(b Color)
color.go:85
↓ 3 callers
Method
NRGBA
()
color.go:56
↓ 3 callers
Function
NewEmptyMesh
()
mesh.go:15
↓ 3 callers
Function
NewLine
(v1, v2 Vertex)
line.go:7
↓ 3 callers
Function
RoundPlaces
(a float64, places int)
util.go:109
↓ 3 callers
Method
Vector
()
examples/pipes.go:55
↓ 3 callers
Function
parseIndex
(value string, length int)
obj.go:10
↓ 3 callers
Method
rasterize
(v0, v1, v2 Vertex, s0, s1, s2 Vector)
context.go:151
↓ 3 callers
Function
smoothNormalsThreshold
(normal Vector, normals []Vector, threshold float64)
mesh.go:80
↓ 2 callers
Method
Alpha
(alpha float64)
color.go:69
↓ 2 callers
Method
Anchor
(anchor Vector)
box.go:37
next →
1–100 of 285, ranked by callers