MCPcopy Index your code
hub / github.com/g3n/engine / GetVector3

Method GetVector3

math32/array.go:96–101  ·  view source on GitHub ↗

GetVector3 stores in the specified Vector3 the values from the array starting at the specified pos.

(pos int, v *Vector3)

Source from the content-addressed store, hash-verified

94// GetVector3 stores in the specified Vector3 the
95// values from the array starting at the specified pos.
96func (a ArrayF32) GetVector3(pos int, v *Vector3) {
97
98 v.X = a[pos]
99 v.Y = a[pos+1]
100 v.Z = a[pos+2]
101}
102
103// GetVector4 stores in the specified Vector4 the
104// values from the array starting at the specified pos.

Callers 12

NewTruncatedConeSectorFunction · 0.95
AddMorphTargetsMethod · 0.80
ReadFacesMethod · 0.80
NewPositionChannelFunction · 0.80
NewScaleChannelFunction · 0.80
NewGeometryMethod · 0.80
RaycastSpriteMethod · 0.80
lineRaycastFunction · 0.80
UpdateMethod · 0.80
OperateOnVectors3Method · 0.80
ReadVectors3Method · 0.80
ReadTripleVectors3Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected