mirror of
https://github.com/vlang/v.git
synced 2025-08-03 17:57:59 -04:00
examples: remove the generic alias type overloaded operator workaround, after 29e60da
This commit is contained in:
parent
29e60da614
commit
ef0d5caaf8
@ -16,10 +16,6 @@ fn rads(degrees f32) f32 {
|
||||
return f32(math.radians(degrees))
|
||||
}
|
||||
|
||||
fn (a V2) + (b V2) V2 {
|
||||
return a.add(b)
|
||||
}
|
||||
|
||||
fn (a V2) offset(angle f32, scale f32) V2 {
|
||||
return a + V2{math.cosf(angle) * scale, math.sinf(angle) * scale}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user