C# Class AoMEngineLibrary.Graphics.Model.Color3D

Mostrar archivo Open project: Ryder25/Age-of-Mythology Class Usage Examples

Public Methods

Method Description
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.

Method Details

Color3D() public method

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
return System

Color3D() public method

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

Equals() public method

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

Equals() public method

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

GetHashCode() public method

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

IsBlack() public method

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

ToString() public method

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

operator() public static method

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

operator() public static method

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

this() public method

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.
return float