메소드 | 설명 | |
---|---|---|
Add ( |
add 2 vector
|
|
CompareDouble ( double d1, double d2 ) : bool |
compare whether 2 double is equal using internal precision
|
|
Dot ( |
dot multiply two vector
|
|
FindIntersection ( float u0, float u1, float v0, float v1, float &w ) : int |
find and calculate the intersection of two interval [u0, u1] and [v0, v1]
|
|
GetMax ( float f1, float f2 ) : float |
get the maximum value of 2 float
|
|
GetMin ( float f1, float f2 ) : float |
get the minimum value of 2 float
|
|
Multiply ( float f, |
multiply a float with a vector
|
|
Subtract ( |
subtract 2 vector
|
메소드 | 설명 | |
---|---|---|
MathUtil ( ) : System |
forbidden default constructor
|
public static Add ( |
||
f1 | first vector | |
f2 | second vector | |
리턴 |
public static CompareDouble ( double d1, double d2 ) : bool | ||
d1 | double | first value |
d2 | double | second value |
리턴 | bool |
public static Dot ( |
||
pnt1 | first vector | |
pnt2 | second vector | |
리턴 | float |
public static FindIntersection ( float u0, float u1, float v0, float v1, float &w ) : int | ||
u0 | float | first interval |
u1 | float | first interval |
v0 | float | second interval |
v1 | float | second interval |
w | float | 2 intersections |
리턴 | int |
public static GetMax ( float f1, float f2 ) : float | ||
f1 | float | first float |
f2 | float | second float |
리턴 | float |
public static GetMin ( float f1, float f2 ) : float | ||
f1 | float | first float |
f2 | float | second float |
리턴 | float |
public static Multiply ( float f, |
||
f | float | float value |
pnt | vector | |
리턴 |
public static Subtract ( |
||
f1 | first vector | |
f2 | second vector | |
리턴 |