C# Class Nez.UI.ScalingExt

ファイルを表示 Open project: prime31/Nez

Public Methods

Method Description
apply ( this self, float sourceWidth, float sourceHeight, float targetWidth, float targetHeight ) : Vector2

Returns the size of the source scaled to the target

Method Details

apply() public static method

Returns the size of the source scaled to the target
public static apply ( this self, float sourceWidth, float sourceHeight, float targetWidth, float targetHeight ) : Vector2
self this Self.
sourceWidth float Source width.
sourceHeight float Source height.
targetWidth float Target width.
targetHeight float Target height.
return Vector2