MCPcopy
hub / github.com/EngoEngine/engo / Set

Method Set

math.go:75–79  ·  view source on GitHub ↗

Set sets the coordinates of p to x and y

(x, y float32)

Source from the content-addressed store, hash-verified

73
74// Set sets the coordinates of p to x and y
75func (p *Point) Set(x, y float32) *Point {
76 p.X = x
77 p.Y = y
78 return p
79}
80
81// AddScalar adds s to each component of p
82func (p *Point) AddScalar(s float32) *Point {

Callers 15

TestPointSetFunction · 0.95
CreateWindowFunction · 0.45
SetTitleFunction · 0.45
rafPolyfillFunction · 0.45
jsPollKeysFunction · 0.45
openFileFunction · 0.45
SetCursorFunction · 0.45
SetCursorVisibilityFunction · 0.45
CreateWindowFunction · 0.45
CreateWindowFunction · 0.45
RunIterationFunction · 0.45
keyFillManagerFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestPointSetFunction · 0.76
keyFillManagerFunction · 0.36
TestAxisSimpleFunction · 0.36
TestAxisComplexFunction · 0.36
TestButtonSimpleFunction · 0.36
TestButtonComplexFunction · 0.36
TestMatrixSetFunction · 0.36
TestMatrixMultiplyFunction · 0.36
TestMatrixTranslateFunction · 0.36
TestMatrixTranslatePointFunction · 0.36
TestMatrixScaleFunction · 0.36
TestMatrixScaleComponentFunction · 0.36