examples: remove the generic alias type overloaded operator workaround, after 29e60da

This commit is contained in:
Delyan Angelov 2025-03-18 09:27:56 +02:00
parent 29e60da614
commit ef0d5caaf8
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -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}
}