C# 클래스 Flood.GUI.Util

Misc utility functions.
파일 보기 프로젝트 열기: FloodProject/flood

공개 메소드들

메소드 설명
Add ( this color, System.Color other ) : System.Color
Add ( this r, Rectangle other ) : Rectangle
Ceil ( float x ) : int
Clamp ( float x, float min, float max ) : float
Clamp ( int x, int min, int max ) : int
ClampRectToRect ( Rectangle inside, Rectangle outside, bool clampSize = false ) : Rectangle
FloatRect ( float x, float y, float w, float h ) : Rectangle
HSVToColor ( float h, float s, float v ) : System.Color
Multiply ( this color, float amount ) : System.Color
Round ( float x ) : int
SplitAndKeep ( String text, String separators ) : String[]

Splits a string but keeps the separators intact (at the end of split parts).

Subtract ( this color, System.Color other ) : System.Color
ToHSV ( this color ) : HSV

메소드 상세

Add() 공개 정적인 메소드

public static Add ( this color, System.Color other ) : System.Color
color this
other System.Color
리턴 System.Color

Add() 공개 정적인 메소드

public static Add ( this r, Rectangle other ) : Rectangle
r this
other Rectangle
리턴 Rectangle

Ceil() 공개 정적인 메소드

public static Ceil ( float x ) : int
x float
리턴 int

Clamp() 공개 정적인 메소드

public static Clamp ( float x, float min, float max ) : float
x float
min float
max float
리턴 float

Clamp() 공개 정적인 메소드

public static Clamp ( int x, int min, int max ) : int
x int
min int
max int
리턴 int

ClampRectToRect() 공개 정적인 메소드

public static ClampRectToRect ( Rectangle inside, Rectangle outside, bool clampSize = false ) : Rectangle
inside Rectangle
outside Rectangle
clampSize bool
리턴 Rectangle

FloatRect() 공개 정적인 메소드

public static FloatRect ( float x, float y, float w, float h ) : Rectangle
x float
y float
w float
h float
리턴 Rectangle

HSVToColor() 공개 정적인 메소드

public static HSVToColor ( float h, float s, float v ) : System.Color
h float
s float
v float
리턴 System.Color

Multiply() 공개 정적인 메소드

public static Multiply ( this color, float amount ) : System.Color
color this
amount float
리턴 System.Color

Round() 공개 정적인 메소드

public static Round ( float x ) : int
x float
리턴 int

SplitAndKeep() 공개 정적인 메소드

Splits a string but keeps the separators intact (at the end of split parts).
public static SplitAndKeep ( String text, String separators ) : String[]
text String String to split.
separators String Separator characters.
리턴 String[]

Subtract() 공개 정적인 메소드

public static Subtract ( this color, System.Color other ) : System.Color
color this
other System.Color
리턴 System.Color

ToHSV() 공개 정적인 메소드

public static ToHSV ( this color ) : HSV
color this
리턴 HSV