COMPONENTS



SCALAR2BOOLEAN

Click box to see full description


This function converts scalar S to a boolean.

SCALAR2COLOR

Click box to see full description


This function takes a scalar, A and returns the color(S,S,S,A).

SCALAR2INTEGER

Click box to see full description


This is the rounded up integer value of scalar S.
The integer returned is an actual miInteger datatype.

SCALAR2VECTOR

Click box to see full description


This function takes a scalar S and returns the vector(A,A,A).

COLOR2BOOLEAN

Click box to see full description


This converts a color to a boolean, based on overall intensity.
Intensity < CLIP is false, intensity >= CLIP is true.

COLOR2INTEGER

Click box to see full description


This converts a color to an integer, based on overall intensity.
Intensity < CLIP is 0, intensity >= CLIP is 1.

COLOR2RGBA

Click box to see full description


The red, green, blue and alpha components of the color
are returned as scalars.

COLOR2SCALAR

Click box to see full description


This function takes a scalar, S and returns the color(S,S,S,S).

This is function takes a color C and returns a scalar, S.
S is the intensity calculated by averaging the color components.
The return value is S = (RED + GREEN + BLUE)/3.

COLOR2VECTOR

Click box to see full description


This function takes a color, C and returns the vector(R,G,B).

RGBA2COLOR

Click box to see full description


This function takes the four scalars, R, G, B, A. 
It returns a color with those red, green, blue, and alpha components.

VECTOR2COLOR

Click box to see full description


This function takes a vector, V and a float A.
It returns a color(X,Y,Z,A).

VECTOR2INTEGER

Click box to see full description


This function takes a vector, V and  return a scalar S.
S is the magnitude of V.

VECTOR2SCALAR

Click box to see full description


This function takes a vector, V and  return a scalar S.
S is the magnitude of V.

VECTOR2XYZ

Click box to see full description


This function returns the xyz components of the vector, V.

XYZ2VECTOR

Click box to see full description


This function takes the three scalars and
returns a vector with those xyz components.

INT2BOOLEAN

Click box to see full description


If the integer I is 0, miFALSE is returned, otherwise miTRUE is returned. 

INT2SCALAR

Click box to see full description


The integer value is returned as a scalar.

BOOLEAN2COLOR

Click box to see full description


This function converts boolean BOOL to color C.
miTRUE = WHITE		miFALSE = BLACK

BOOLEAN2INT

Click box to see full description


This function converts boolean BOOL to integer I.
miTRUE = 1 and miFALSE = 0.

BOOLEAN2SCALAR

Click box to see full description


This function converts boolean BOOL to scalar S.
miTRUE = 1 and miFALSE = 0.

BOOLEAN2VECTOR

Click box to see full description


This function converts boolean BOOL to vector V.
miTRUE = (1,1,1)		miFALSE = (0,0,0)

© Copyright 1996,1998 Cinema Graphics Inc. All Rights reserved.