메소드 | 설명 | |
---|---|---|
Around ( this position, float distance ) : |
Returns a random position around the specified center position. The Y component of the random position will always be the same as the center position.
|
|
CalculateSlopeDeg ( this normal ) : float |
Returns the slope of the specified normal in degrees. Based on Y being the up component.
|
|
CalculateSlopeDeg ( this normal, |
Returns the slope of the specified normal in degrees. Based on Y being the up component.
|
|
CalculateSlopeRad ( this normal ) : float |
Returns the slope of the specified normal in radians.
|
|
CalculateSlopeRad ( this normal, |
Returns the slope of the specified normal in radians.
|
|
Within ( this position, float x, float y, float z ) : |
Returns a random position inside a box.
|
public static Around ( this position, float distance ) : |
||
position | this | /// The center position to generate a random position around. /// |
distance | float | /// The distance from the center position to the generated random position. /// |
리턴 |
public static CalculateSlopeDeg ( this normal ) : float | ||
normal | this | /// The normal who's slope to calculate. /// |
리턴 | float |
public static CalculateSlopeDeg ( this normal, |
||
normal | this | /// The normal who's slope to calculate. /// |
up | /// The up direction. /// | |
리턴 | float |
public static CalculateSlopeRad ( this normal ) : float | ||
normal | this | /// The normal who's slope to calculate. /// |
리턴 | float |
public static CalculateSlopeRad ( this normal, |
||
normal | this | /// The normal who's slope to calculate. /// |
up | /// The up direction. /// | |
리턴 | float |
public static Within ( this position, float x, float y, float z ) : |
||
position | this | /// The center of the box. /// |
x | float | /// The width of the box. /// |
y | float | /// The height of the box. /// |
z | float | /// The depth of the box. /// |
리턴 |