//--------------------------------------
//               PowerUI
//
//        For documentation or 
//    if you have any issues, visit
//        powerUI.kulestar.com
//
//    Copyright  2013 Kulestar Ltd
//          www.kulestar.com
//--------------------------------------

using System;


namespace Css.Units{
	
	/// <summary>
	/// Represents an instance of a length, e.g. cm, mm etc.
	/// </summary>
	
	public class LengthUnit:DecimalUnit{
		
		public override float GetDecimal(RenderableData context,CssProperty property){
			
			// Apply zoom:
			return RawValue * context.ValueScale;
			
		}
		
		protected override Value Clone(){
			LengthUnit result=new LengthUnit();
			result.RawValue=RawValue;
			return result;
		}
		
	}
	
}



