C# Class DeenGames.Utils.Tower.Core.TowerUtils

A generic utility class, with odds and ends in it.
ファイルを表示 Open project: deengames/valence

Public Methods

Method Description
DistanceBetweenPoints ( int x1, int y1, int x2, int y2 ) : double

Colour some text. This uses intuitive [0..255] values, rather than whacked-out [0..1] values. Throws an exception if RGB is out of [0..255].

Method Details

DistanceBetweenPoints() public static method

Colour some text. This uses intuitive [0..255] values, rather than whacked-out [0..1] values. Throws an exception if RGB is out of [0..255].
public static DistanceBetweenPoints ( int x1, int y1, int x2, int y2 ) : double
x1 int
y1 int
x2 int
y2 int
return double