MCPcopy
hub / github.com/g3n/engine / NewDisk

Function NewDisk

geometry/disk.go:16–18  ·  view source on GitHub ↗

NewDisk creates a disk (filled circle) geometry with the specified radius and number of radial segments/triangles (minimum 3).

(radius float64, segments int)

Source from the content-addressed store, hash-verified

14// NewDisk creates a disk (filled circle) geometry with the specified
15// radius and number of radial segments/triangles (minimum 3).
16func NewDisk(radius float64, segments int) *Geometry {
17 return NewDiskSector(radius, segments, 0, 2*math.Pi)
18}
19
20// NewDiskSector creates a disk (filled circle) or disk sector geometry with the specified radius,
21// number of radial segments/triangles (minimum 3), sector start angle in radians, and sector size angle in radians.

Callers

nothing calls this directly

Calls 1

NewDiskSectorFunction · 0.85

Tested by

no test coverage detected