Sha256: 9f67505c4d32aa204a0b908128e43fa3dc6f0913629d8396fb05ec2aafa6cc99

Contents?: true

Size: 1.51 KB

Versions: 31

Compression:

Stored size: 1.51 KB

Contents

/**    
 * @author Jefferson González
 * @copyright 2010 Jefferson González
 *
 * @license 
 * This file is part of Jaris FLV Player.
 *
 * Jaris FLV Player is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License or GNU LESSER GENERAL 
 * PUBLIC LICENSE as published by the Free Software Foundation, either version 
 * 3 of the License, or (at your option) any later version.
 *
 * Jaris FLV Player is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License and 
 * GNU LESSER GENERAL PUBLIC LICENSE along with Jaris FLV Player.  If not, 
 * see <http://www.gnu.org/licenses/>.
 */

package jaris.player;

/**
 * Stores the player used aspect ratio constants
 */
class AspectRatio 
{
	public static var _1_1:Float = 1 / 1;	
	public static var _3_2:Float = 3 / 2;	
	public static var _4_3:Float = 4 / 3;
	public static var _5_4:Float = 5 / 4;
	public static var _14_9:Float = 14 / 9;
	public static var _14_10:Float = 14 / 10;
	public static var _16_9:Float = 16 / 9;
	public static var _16_10:Float = 16 / 10;
	
	/**
	 * Calculates the ratio for a given width and height
	 * @param	width
	 * @param	height
	 * @return aspect ratio
	 */
	public static function getAspectRatio(width:Float, height:Float):Float
	{
		return width / height;
	}
}

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
sequenceserver-3.1.3 public/vendor/npm/webshim@1.15.8/swfs/jaris/src/jaris/player/AspectRatio.hx
sequenceserver-3.1.2 public/vendor/npm/webshim@1.15.8/swfs/jaris/src/jaris/player/AspectRatio.hx
sequenceserver-3.1.1 public/vendor/npm/webshim@1.15.8/swfs/jaris/src/jaris/player/AspectRatio.hx
sequenceserver-3.1.0 public/vendor/npm/webshim@1.15.8/swfs/jaris/src/jaris/player/AspectRatio.hx
sequenceserver-3.0.1 public/vendor/npm/webshim@1.15.8/swfs/jaris/src/jaris/player/AspectRatio.hx
sequenceserver-3.0 public/vendor/npm/webshim@1.15.8/swfs/jaris/src/jaris/player/AspectRatio.hx
sequenceserver-2.2.0 public/vendor/npm/webshim@1.15.8/swfs/jaris/src/jaris/player/AspectRatio.hx
sequenceserver-2.1.0 public/vendor/npm/webshim@1.15.8/swfs/jaris/src/jaris/player/AspectRatio.hx
sequenceserver-2.0.0 public/vendor/npm/webshim@1.15.8/swfs/jaris/src/jaris/player/AspectRatio.hx
sequenceserver-2.0.0.rc8 public/vendor/npm/webshim@1.15.8/swfs/jaris/src/jaris/player/AspectRatio.hx
sequenceserver-2.0.0.rc7 public/vendor/npm/webshim@1.15.8/swfs/jaris/src/jaris/player/AspectRatio.hx
sequenceserver-2.0.0.rc6 public/vendor/npm/webshim@1.15.8/swfs/jaris/src/jaris/player/AspectRatio.hx
sequenceserver-2.0.0.rc5 public/vendor/npm/webshim@1.15.8/swfs/jaris/src/jaris/player/AspectRatio.hx
sequenceserver-2.0.0.rc4 public/vendor/npm/webshim@1.15.8/swfs/jaris/src/jaris/player/AspectRatio.hx
sequenceserver-2.0.0.rc3 public/vendor/npm/webshim@1.15.8/swfs/jaris/src/jaris/player/AspectRatio.hx
sequenceserver-2.0.0.rc2 public/vendor/npm/webshim@1.15.8/swfs/jaris/src/jaris/player/AspectRatio.hx
sequenceserver-2.0.0.rc1 public/vendor/npm/webshim@1.15.8/swfs/jaris/src/jaris/player/AspectRatio.hx
sequenceserver-2.0.0.beta4 public/vendor/npm/webshim@1.15.8/swfs/jaris/src/jaris/player/AspectRatio.hx
sequenceserver-2.0.0.beta3 public/vendor/npm/webshim@1.15.8/swfs/jaris/src/jaris/player/AspectRatio.hx
sequenceserver-2.0.0.beta1 public/vendor/npm/webshim@1.15.8/swfs/jaris/src/jaris/player/AspectRatio.hx