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

Method SetPosition

math32/matrix4.go:424–430  ·  view source on GitHub ↗

SetPosition sets this transformation matrix position fields from the specified vector v. Returns pointer to this updated matrix.

(v *Vector3)

Source from the content-addressed store, hash-verified

422// SetPosition sets this transformation matrix position fields from the specified vector v.
423// Returns pointer to this updated matrix.
424func (m *Matrix4) SetPosition(v *Vector3) *Matrix4 {
425
426 m[12] = v.X
427 m[13] = v.Y
428 m[14] = v.Z
429 return m
430}
431
432// GetInverse sets this matrix to the inverse of the src matrix.
433// If the src matrix cannot be inverted returns error and

Callers 1

ComposeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected