Packageaway3d.materials.utils
Classpublic class AGAL

The AGAL class provides static helper methods to improve readability when writing AGAL code.

Public Methods
 MethodDefined by
  
add(tgt:String, src1:String, src2:String):String
[static] Add
AGAL
  
cos(tgt:String, src:String):String
[static]
AGAL
  
cross(tgt:String, src1:String, src2:String):String
[static] Cross product for 3-component vectors
AGAL
  
div(tgt:String, src1:String, src2:String):String
[static] Divide
AGAL
  
dp3(tgt:String, src1:String, src2:String):String
[static] Dot product for a 3-component vector
AGAL
  
dp4(tgt:String, src1:String, src2:String):String
[static] Dot product for a 4-component vector
AGAL
  
exp(tgt:String, src:String):String
[static] Exponential
AGAL
  
fract(tgt:String, src:String):String
[static] Get the fractional part
AGAL
  
greaterOrEqualTo(tgt:String, src1:String, src2:String):String
[static] Greater or equal (identical to step)
AGAL
  
kill(src:String):String
[static]
AGAL
  
lessThan(tgt:String, src1:String, src2:String):String
[static] Less than: tgt = src1 < src2? 1 : 0
AGAL
  
m33(tgt:String, src1:String, src2:String):String
[static] Vector Matrix3x3 multiplication
AGAL
  
m34(tgt:String, src1:String, src2:String):String
[static] Vector Matrix3x4 multiplication
AGAL
  
m44(tgt:String, src1:String, src2:String):String
[static] Vector Matrix4x4 multiplication
AGAL
  
mov(tgt:String, src:String):String
[static] Copy value
AGAL
  
mul(tgt:String, src1:String, src2:String):String
[static] Multiply
AGAL
  
neg(tgt:String, src:String):String
[static] Negate, tgt = -src
AGAL
  
normalize(tgt:String, src:String):String
[static] Normalize a 3-component vector
AGAL
  
pow(tgt:String, src1:String, src2:String):String
[static] Power
AGAL
  
rcp(tgt:String, src:String):String
[static] Reciprocal, tgt = 1/src
AGAL
  
sample(tgt:String, coord:String, type:String, fs:String, filter:String, wrap:String):String
[static] Sample texture
AGAL
  
sat(tgt:String, src:String):String
[static] Saturate; Clamp a value between 0 and 1
AGAL
  
sin(tgt:String, src:String):String
[static]
AGAL
  
sqrt(tgt:String, src:String):String
[static] Square root
AGAL
  
step(tgt:String, src1:String, src2:String):String
[static] Step: tgt = src1 > src2? 1 : 0
AGAL
  
sub(tgt:String, src1:String, src2:String):String
[static] Subtract
AGAL
Method detail
add()method
public static function add(tgt:String, src1:String, src2:String):String

Add

Parameters
tgt:String
 
src1:String
 
src2:String

Returns
String
cos()method 
public static function cos(tgt:String, src:String):String Parameters
tgt:String
 
src:String

Returns
String
cross()method 
public static function cross(tgt:String, src1:String, src2:String):String

Cross product for 3-component vectors

Parameters
tgt:String
 
src1:String
 
src2:String

Returns
String
div()method 
public static function div(tgt:String, src1:String, src2:String):String

Divide

Parameters
tgt:String
 
src1:String
 
src2:String

Returns
String
dp3()method 
public static function dp3(tgt:String, src1:String, src2:String):String

Dot product for a 3-component vector

Parameters
tgt:String
 
src1:String
 
src2:String

Returns
String
dp4()method 
public static function dp4(tgt:String, src1:String, src2:String):String

Dot product for a 4-component vector

Parameters
tgt:String
 
src1:String
 
src2:String

Returns
String
exp()method 
public static function exp(tgt:String, src:String):String

Exponential

Parameters
tgt:String
 
src:String

Returns
String
fract()method 
public static function fract(tgt:String, src:String):String

Get the fractional part

Parameters
tgt:String
 
src:String

Returns
String
greaterOrEqualTo()method 
public static function greaterOrEqualTo(tgt:String, src1:String, src2:String):String

Greater or equal (identical to step)

Parameters
tgt:String
 
src1:String
 
src2:String

Returns
String
kill()method 
public static function kill(src:String):String Parameters
src:String

Returns
String
lessThan()method 
public static function lessThan(tgt:String, src1:String, src2:String):String

Less than: tgt = src1 < src2? 1 : 0

Parameters
tgt:String
 
src1:String
 
src2:String

Returns
String
m33()method 
public static function m33(tgt:String, src1:String, src2:String):String

Vector Matrix3x3 multiplication

Parameters
tgt:String
 
src1:String
 
src2:String

Returns
String
m34()method 
public static function m34(tgt:String, src1:String, src2:String):String

Vector Matrix3x4 multiplication

Parameters
tgt:String
 
src1:String
 
src2:String

Returns
String
m44()method 
public static function m44(tgt:String, src1:String, src2:String):String

Vector Matrix4x4 multiplication

Parameters
tgt:String
 
src1:String
 
src2:String

Returns
String
mov()method 
public static function mov(tgt:String, src:String):String

Copy value

Parameters
tgt:String
 
src:String

Returns
String
mul()method 
public static function mul(tgt:String, src1:String, src2:String):String

Multiply

Parameters
tgt:String
 
src1:String
 
src2:String

Returns
String
neg()method 
public static function neg(tgt:String, src:String):String

Negate, tgt = -src

Parameters
tgt:String
 
src:String

Returns
String
normalize()method 
public static function normalize(tgt:String, src:String):String

Normalize a 3-component vector

Parameters
tgt:String
 
src:String

Returns
String
pow()method 
public static function pow(tgt:String, src1:String, src2:String):String

Power

Parameters
tgt:String
 
src1:String
 
src2:String

Returns
String
rcp()method 
public static function rcp(tgt:String, src:String):String

Reciprocal, tgt = 1/src

Parameters
tgt:String
 
src:String

Returns
String
sample()method 
public static function sample(tgt:String, coord:String, type:String, fs:String, filter:String, wrap:String):String

Sample texture

Parameters
tgt:String
 
coord:String
 
type:String
 
fs:String
 
filter:String
 
wrap:String

Returns
String
sat()method 
public static function sat(tgt:String, src:String):String

Saturate; Clamp a value between 0 and 1

Parameters
tgt:String
 
src:String

Returns
String
sin()method 
public static function sin(tgt:String, src:String):String Parameters
tgt:String
 
src:String

Returns
String
sqrt()method 
public static function sqrt(tgt:String, src:String):String

Square root

Parameters
tgt:String
 
src:String

Returns
String
step()method 
public static function step(tgt:String, src1:String, src2:String):String

Step: tgt = src1 > src2? 1 : 0

Parameters
tgt:String
 
src1:String
 
src2:String

Returns
String
sub()method 
public static function sub(tgt:String, src1:String, src2:String):String

Subtract

Parameters
tgt:String
 
src1:String
 
src2:String

Returns
String
Wiki link
Click to go to the wiki page for 'away3d.materials.utils.AGAL'

Code examples

Comments