Метод | Описание | |
---|---|---|
CalculateXY ( RGBColor color, string model ) : CGPoint | ||
HexFromState ( State state ) : string |
Returns hexvalue from Light State
|
|
HexFromState ( State state, string model ) : string |
Returns hexvalue from Light State
|
|
XyFromColor ( int red, int green, int blue ) : CGPoint |
Get XY from red,green,blue ints
|
Метод | Описание | |
---|---|---|
CheckPointInLampsReach ( CGPoint p ) : bool |
Method to see if the given XY value is within the reach of the lamps.
|
|
CheckPointInLampsReach ( CGPoint p, List |
||
ColorFromXY ( CGPoint xy, string model ) : RGBColor | ||
ColorPointsForModel ( string ModelID ) : List |
||
CrossProduct ( CGPoint p1, CGPoint p2 ) : float | ||
GetClosestPointToPoint ( CGPoint A, CGPoint B, CGPoint P ) : CGPoint |
Find the closest point on a line. This point will be within reach of the lamp.
|
|
GetClosestPointToPoints ( CGPoint A, CGPoint B, CGPoint P ) : CGPoint | ||
GetDistanceBetweenTwoPoints ( CGPoint one, CGPoint two ) : float | ||
HexFromXy ( double xNumber, double yNumber ) : string |
Get the HEX color from an XY value
|
|
XyFromColor ( string red, string green, string blue ) : CGPoint |
Get XY from red,green,blue strings / ints
|
public static CalculateXY ( RGBColor color, string model ) : CGPoint | ||
color | RGBColor | |
model | string | |
Результат | CGPoint |
public static HexFromState ( State state ) : string | ||
state | State | |
Результат | string |
public static HexFromState ( State state, string model ) : string | ||
state | State | |
model | string | |
Результат | string |
public static XyFromColor ( int red, int green, int blue ) : CGPoint | ||
red | int | |
green | int | |
blue | int | |
Результат | CGPoint |