C# 클래스 AoMEngineLibrary.Graphics.Model.Color3D

파일 보기 프로젝트 열기: Ryder25/Age-of-Mythology 1 사용 예제들

공개 메소드들

메소드 설명
Color3D ( float value ) : System

Constructs a Color3D where each component is set to the same value.

Color3D ( float r, float g, float b ) : System

Constructs a Color3D.

Equals ( Color3D other ) : bool

Tests equality between this color and another color

Equals ( object obj ) : bool

Tests equality between this color and another object.

GetHashCode ( ) : int

Returns a hash code for this instance.

IsBlack ( ) : bool

Determines if the color is black, or close to being black.

ToString ( ) : string

Returns a System.String that represents this instance.

operator ( ) : Color3D

Multiplies the two colors.

operator ( ) : bool

Tets inequality between two colors.

this ( int index ) : float

Gets or sets the component value at the specified zero-based index in the order of RGBA (index 0 access R, 1 access G, etc). If the index is not in range, a value of zero is returned.

메소드 상세

Color3D() 공개 메소드

Constructs a Color3D where each component is set to the same value.
public Color3D ( float value ) : System
value float Value to set R, G, B components
리턴 System

Color3D() 공개 메소드

Constructs a Color3D.
public Color3D ( float r, float g, float b ) : System
r float Red component
g float Green component
b float Blue component
리턴 System

Equals() 공개 메소드

Tests equality between this color and another color
public Equals ( Color3D other ) : bool
other Color3D Color to test against
리턴 bool

Equals() 공개 메소드

Tests equality between this color and another object.
public Equals ( object obj ) : bool
obj object Object to test against
리턴 bool

GetHashCode() 공개 메소드

Returns a hash code for this instance.
public GetHashCode ( ) : int
리턴 int

IsBlack() 공개 메소드

Determines if the color is black, or close to being black.
public IsBlack ( ) : bool
리턴 bool

ToString() 공개 메소드

Returns a System.String that represents this instance.
public ToString ( ) : string
리턴 string

operator() 공개 정적인 메소드

Multiplies the two colors.
public static operator ( ) : Color3D
리턴 Color3D

operator() 공개 정적인 메소드

Tets inequality between two colors.
public static operator ( ) : bool
리턴 bool

this() 공개 메소드

Gets or sets the component value at the specified zero-based index in the order of RGBA (index 0 access R, 1 access G, etc). If the index is not in range, a value of zero is returned.
public this ( int index ) : float
index int Zero-based index.
리턴 float