Axiom.Core.Light.CompareTo C# (CSharp) Méthode

CompareTo() public méthode

Used to compare this light to another light for sorting.
public CompareTo ( object obj ) : int
obj object
Résultat int
		public virtual int CompareTo( object obj )
		{
			Light other = obj as Light;

			if ( other.tempSquaredDist > this.tempSquaredDist )
			{
				return 1;
			}
			else
			{
				return -1;
			}
		}