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

using System;


namespace Blaze{

	public partial class VectorLine:VectorPoint{
		
		/// <summary>True if this was generated from a close path call.</summary>
		public bool Close;
		/// <summary>The length of this line. Updated by RecalculateBounds.</summary>
		public float Length;
		
		public VectorLine(float x,float y):base(x,y){}
		
		/// <summary>Samples this line at the given c value.</summary>
		public virtual void SampleAt(float c,out float x,out float y){
			x=X;
			y=Y;
		}
		
		public override bool IsClose{
			get{
				return Close;
			}
			set{
				Close=value;
			}
		}
		
		/// <summary>Is there a line from this point to the previous one?</summary>
		public override bool HasLine{
			get{
				return true;
			}
		}
		
	}

}