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

Method SetVector3

math32/array.go:173–178  ·  view source on GitHub ↗

SetVector3 sets the values of the array at the specified pos from the XYZ values of the specified Vector3

(pos int, v *Vector3)

Source from the content-addressed store, hash-verified

171// SetVector3 sets the values of the array at the specified pos
172// from the XYZ values of the specified Vector3
173func (a ArrayF32) SetVector3(pos int, v *Vector3) {
174
175 a[pos] = v.X
176 a[pos+1] = v.Y
177 a[pos+2] = v.Z
178}
179
180// SetVector4 sets the values of the array at the specified pos
181// from the XYZ values of the specified Vector4

Callers 4

NewSphereSectorFunction · 0.95
NewTruncatedConeSectorFunction · 0.95
UpdateMethod · 0.45
OperateOnVectors3Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected