Skip to content

Commit 6d3d959

Browse files
committed
examples: Correct function names
1 parent 7132702 commit 6d3d959

2 files changed

Lines changed: 20 additions & 20 deletions

File tree

cie_lab_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package gfx
22

3-
func ExampleLab() {
3+
func ExampleCIELab() {
44
var (
55
rgba = ColorRGBA(255, 0, 0, 255)
66
xyz = ColorToXYZ(rgba)

vec2_test.go

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func TestVecEq(t *testing.T) {
7777
}
7878
}
7979

80-
func ExampleVecAdd() {
80+
func ExampleVec_Add() {
8181
Dump(
8282
V(1, 1).Add(V(2, 3)),
8383
V(3, 3).Add(V(-1, -2)),
@@ -88,7 +88,7 @@ func ExampleVecAdd() {
8888
// gfx.V(2.00000000, 1.00000000)
8989
}
9090

91-
func ExampleVecAddXY() {
91+
func ExampleVec_AddXY() {
9292
Dump(
9393
V(1, 1).AddXY(2, 3),
9494
V(3, 3).AddXY(-1, -2),
@@ -99,7 +99,7 @@ func ExampleVecAddXY() {
9999
// gfx.V(2.00000000, 1.00000000)
100100
}
101101

102-
func ExampleVecSub() {
102+
func ExampleVec_Sub() {
103103
Dump(
104104
V(1, 1).Sub(V(2, 3)),
105105
V(3, 3).Sub(V(-1, -2)),
@@ -110,7 +110,7 @@ func ExampleVecSub() {
110110
// gfx.V(4.00000000, 5.00000000)
111111
}
112112

113-
func ExampleVecTo() {
113+
func ExampleVec_To() {
114114
Dump(
115115
V(1, 1).To(V(2, 3)),
116116
V(3, 3).To(V(-1, -2)),
@@ -121,7 +121,7 @@ func ExampleVecTo() {
121121
// gfx.V(-4.00000000, -5.00000000)
122122
}
123123

124-
func ExampleVecMod() {
124+
func ExampleVec_Mod() {
125125
Dump(
126126
V(1, 1).Mod(V(2.5, 3)),
127127
V(2, 5.5).Mod(V(2, 3)),
@@ -132,7 +132,7 @@ func ExampleVecMod() {
132132
// gfx.V(0.00000000, 2.50000000)
133133
}
134134

135-
func ExampleVecAbs() {
135+
func ExampleVec_Abs() {
136136
Dump(
137137
V(1, -1).Abs(),
138138
V(-2, -2).Abs(),
@@ -145,7 +145,7 @@ func ExampleVecAbs() {
145145
// gfx.V(3.00000000, 6.00000000)
146146
}
147147

148-
func ExampleVecMax() {
148+
func ExampleVec_Max() {
149149
Dump(
150150
V(1, 1).Max(V(2.5, 3)),
151151
V(2, 5.5).Max(V(2, 3)),
@@ -156,7 +156,7 @@ func ExampleVecMax() {
156156
// gfx.V(2.00000000, 5.50000000)
157157
}
158158

159-
func ExampleVecMin() {
159+
func ExampleVec_Min() {
160160
Dump(
161161
V(1, 1).Min(V(2.5, 3)),
162162
V(2, 5.5).Min(V(2, 3)),
@@ -167,7 +167,7 @@ func ExampleVecMin() {
167167
// gfx.V(2.00000000, 3.00000000)
168168
}
169169

170-
func ExampleVecDot() {
170+
func ExampleVec_Dot() {
171171
Dump(
172172
V(1, 1).Dot(V(2.5, 3)),
173173
V(2, 5.5).Dot(V(2, 3)),
@@ -178,7 +178,7 @@ func ExampleVecDot() {
178178
// 20.5
179179
}
180180

181-
func ExampleVecCross() {
181+
func ExampleVec_Cross() {
182182
Dump(
183183
V(1, 1).Cross(V(2.5, 3)),
184184
V(2, 5.5).Cross(V(2, 3)),
@@ -189,7 +189,7 @@ func ExampleVecCross() {
189189
// -5
190190
}
191191

192-
func ExampleVecProject() {
192+
func ExampleVec_Project() {
193193
Dump(
194194
V(1, 1).Project(V(2.5, 3)),
195195
V(2, 5.5).Project(V(2, 3)),
@@ -200,7 +200,7 @@ func ExampleVecProject() {
200200
// gfx.V(3.15384615, 4.73076923)
201201
}
202202

203-
func ExampleVecMap() {
203+
func ExampleVec_Map() {
204204
Dump(
205205
V(1.1, 1).Map(math.Ceil),
206206
V(1.1, 2.5).Map(math.Round),
@@ -211,7 +211,7 @@ func ExampleVecMap() {
211211
// gfx.V(1.00000000, 3.00000000)
212212
}
213213

214-
func ExampleVecVec3() {
214+
func ExampleVec_Vec3() {
215215
Dump(
216216
V(1, 2).Vec3(3),
217217
V(4, 5).Vec3(6),
@@ -222,7 +222,7 @@ func ExampleVecVec3() {
222222
// gfx.V3(4, 5, 6)
223223
}
224224

225-
func ExampleVecPt() {
225+
func ExampleVec_Pt() {
226226
Dump(
227227
V(1, 2).Pt(),
228228
V(3, 4).Pt(),
@@ -233,7 +233,7 @@ func ExampleVecPt() {
233233
// (3,4)
234234
}
235235

236-
func ExampleVecR() {
236+
func ExampleVec_R() {
237237
Dump(
238238
V(1, 2).R(V(3, 4)),
239239
V(5, 2).R(V(3, 4)),
@@ -244,7 +244,7 @@ func ExampleVecR() {
244244
// gfx.R(5, 2, 3, 4)
245245
}
246246

247-
func ExampleVecB() {
247+
func ExampleVec_B() {
248248
Dump(
249249
V(1, 2).B(V(3, 4)),
250250
V(5, 2).B(V(3, 4)),
@@ -255,7 +255,7 @@ func ExampleVecB() {
255255
// (5,2)-(3,4)
256256
}
257257

258-
func ExampleVecRect() {
258+
func ExampleVec_Rect() {
259259
Dump(
260260
V(10, 10).Rect(-1, -2, 3, 4),
261261
V(3, 4).Rect(1.5, 2.2, 3.3, 4.5),
@@ -266,7 +266,7 @@ func ExampleVecRect() {
266266
// gfx.R(4.5, 6.2, 6.3, 8.5)
267267
}
268268

269-
func ExampleVecBounds() {
269+
func ExampleVec_Bounds() {
270270
Dump(
271271
V(10, 10).Bounds(-1, -2, 3, 4),
272272
V(3, 4).Bounds(1.5, 2.2, 3.3, 4.5),
@@ -277,7 +277,7 @@ func ExampleVecBounds() {
277277
// (4,6)-(6,8)
278278
}
279279

280-
func ExampleVecLerp() {
280+
func ExampleVec_Lerp() {
281281
a, b := V(1, 2), V(30, 40)
282282

283283
Dump(

0 commit comments

Comments
 (0)