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

Method Set

math32/vector3.go:29–35  ·  view source on GitHub ↗

Set sets this vector X, Y and Z components. Returns the pointer to this updated vector.

(x, y, z float32)

Source from the content-addressed store, hash-verified

27// Set sets this vector X, Y and Z components.
28// Returns the pointer to this updated vector.
29func (v *Vector3) Set(x, y, z float32) *Vector3 {
30
31 v.X = x
32 v.Y = y
33 v.Z = z
34 return v
35}
36
37// SetX sets this vector X component.
38// Returns the pointer to this updated Vector.

Callers 7

ExtractRotationMethod · 0.95
DecomposeMethod · 0.95
SetFromUnitVectorsMethod · 0.95
NormalFunction · 0.95
BarycoordFromPointFunction · 0.95
NewSphereSectorFunction · 0.95
SetFromCameraMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected