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

Function NewGeometry

geometry/geometry.go:63–68  ·  view source on GitHub ↗

NewGeometry creates and returns a pointer to a new Geometry.

()

Source from the content-addressed store, hash-verified

61
62// NewGeometry creates and returns a pointer to a new Geometry.
63func NewGeometry() *Geometry {
64
65 g := new(Geometry)
66 g.Init()
67 return g
68}
69
70// Init initializes the geometry.
71func (g *Geometry) Init() {

Callers 15

NewSpriteFunction · 0.92
newChartScaleXFunction · 0.92
newChartScaleYFunction · 0.92
newGraphFunction · 0.92
InitializeMethod · 0.92
newMeshPolylistFunction · 0.92
newMeshTrianglesFunction · 0.92
newMeshLinesFunction · 0.92
newMeshPointsFunction · 0.92
LoadMeshMethod · 0.92
NewGeometryMethod · 0.92
ShowWorldFaceFunction · 0.92

Calls 1

InitMethod · 0.45

Tested by

no test coverage detected