Support for different platforms. Platform_desktop_sdl.

This commit is contained in:
jussi
2023-11-23 00:00:49 +02:00
parent 85a48cf093
commit 1ab9722875
20 changed files with 775 additions and 733 deletions

View File

@@ -126,6 +126,14 @@ function Vector2:angle( v2 )
return RL.Vector2Angle( self, v2 )
end
function Vector2:lineAngle( v2 )
return RL.Vector2LineAngle( self, v2 )
end
function Vector2:atan()
return math.atan( self.x, self.y )
end
function Vector2:scale( scale )
return Vector2:new( RL.Vector2Scale( self, scale ) )
end