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

Method Copy

math32/vector2.go:110–115  ·  view source on GitHub ↗

Copy copies other vector to this one. It is equivalent to: *v = *other. Returns the pointer to this updated vector.

(other *Vector2)

Source from the content-addressed store, hash-verified

108// It is equivalent to: *v = *other.
109// Returns the pointer to this updated vector.
110func (v *Vector2) Copy(other *Vector2) *Vector2 {
111
112 v.X = other.X
113 v.Y = other.Y
114 return v
115}
116
117// Add adds other vector to this one.
118// Returns the pointer to this updated vector.

Callers 3

SetFromCenterAndSizeMethod · 0.95
ClampPointMethod · 0.95
DistanceToPointMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected