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

Function NewPlane

geometry/plane.go:14–16  ·  view source on GitHub ↗

NewPlane creates a plane geometry with the specified width and height. The plane is generated centered in the XY plane with Z=0.

(width, height float32)

Source from the content-addressed store, hash-verified

12// NewPlane creates a plane geometry with the specified width and height.
13// The plane is generated centered in the XY plane with Z=0.
14func NewPlane(width, height float32) *Geometry {
15 return NewSegmentedPlane(width, height, 1, 1)
16}
17
18// NewSegmentedPlane creates a segmented plane geometry with the specified width, height, and number of
19// segments in each dimension (minimum 1 in each). The plane is generated centered in the XY plane with Z=0.

Callers

nothing calls this directly

Calls 1

NewSegmentedPlaneFunction · 0.85

Tested by

no test coverage detected