Méthode | Description | |
---|---|---|
NormalMap ( |
||
distance ( Vector3 line1, Vector3 line2, Vector3 p ) : float | ||
distance ( float line1x, float line1y, float line2x, float line2y, float px, float py ) : float | ||
getNormal ( float x, float y ) : Vector3 |
Méthode | Description | |
---|---|---|
initialise ( |
public NormalMap ( |
||
heightMap | ||
Résultat | System |
public static distance ( Vector3 line1, Vector3 line2, Vector3 p ) : float | ||
line1 | Vector3 | |
line2 | Vector3 | |
p | Vector3 | |
Résultat | float |
public static distance ( float line1x, float line1y, float line2x, float line2y, float px, float py ) : float | ||
line1x | float | |
line1y | float | |
line2x | float | |
line2y | float | |
px | float | |
py | float | |
Résultat | float |
public getNormal ( float x, float y ) : Vector3 | ||
x | float | |
y | float | |
Résultat | Vector3 |