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

Method AppendVector2

math32/array.go:47–52  ·  view source on GitHub ↗

AppendVector2 appends any number of Vector2 to the array

(v ...*Vector2)

Source from the content-addressed store, hash-verified

45
46// AppendVector2 appends any number of Vector2 to the array
47func (a *ArrayF32) AppendVector2(v ...*Vector2) {
48
49 for i := 0; i < len(v); i++ {
50 *a = append(*a, v[i].X, v[i].Y)
51 }
52}
53
54// AppendVector3 appends any number of Vector3 to the array
55func (a *ArrayF32) AppendVector3(v ...*Vector3) {

Callers 3

NewDiskSectorFunction · 0.95
NewTruncatedConeSectorFunction · 0.95
NewGeometryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected