C# Class Drought.Entity.NormalMap

Mostrar archivo Open project: kiniry-teaching/UCD

Public Methods

Method Description
NormalMap ( HeightMap heightMap ) : System
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

Private Methods

Method Description
initialise ( HeightMap heightMap ) : void

Method Details

NormalMap() public method

public NormalMap ( HeightMap heightMap ) : System
heightMap Drought.World.HeightMap
return System

distance() public static method

public static distance ( Vector3 line1, Vector3 line2, Vector3 p ) : float
line1 Vector3
line2 Vector3
p Vector3
return float

distance() public static method

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

getNormal() public method

public getNormal ( float x, float y ) : Vector3
x float
y float
return Vector3