C# 클래스 UnityContrib.UnityEngine.Vector3Ex

Provides a set of helper methods for working with the T:UnityEngine.Vector3 struct.
파일 보기 프로젝트 열기: UnityContrib/framework

공개 메소드들

메소드 설명
Around ( this position, float distance ) : Vector3

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, Vector3 up ) : float

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, Vector3 up ) : float

Returns the slope of the specified normal in radians.

Within ( this position, float x, float y, float z ) : Vector3

Returns a random position inside a box.

메소드 상세

Around() 공개 정적인 메소드

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.
public static Around ( this position, float distance ) : Vector3
position this /// The center position to generate a random position around. ///
distance float /// The distance from the center position to the generated random position. ///
리턴 UnityEngine.Vector3

CalculateSlopeDeg() 공개 정적인 메소드

Returns the slope of the specified normal in degrees. Based on Y being the up component.
public static CalculateSlopeDeg ( this normal ) : float
normal this /// The normal who's slope to calculate. ///
리턴 float

CalculateSlopeDeg() 공개 정적인 메소드

Returns the slope of the specified normal in degrees. Based on Y being the up component.
public static CalculateSlopeDeg ( this normal, Vector3 up ) : float
normal this /// The normal who's slope to calculate. ///
up UnityEngine.Vector3 /// The up direction. ///
리턴 float

CalculateSlopeRad() 공개 정적인 메소드

Returns the slope of the specified normal in radians.
public static CalculateSlopeRad ( this normal ) : float
normal this /// The normal who's slope to calculate. ///
리턴 float

CalculateSlopeRad() 공개 정적인 메소드

Returns the slope of the specified normal in radians.
public static CalculateSlopeRad ( this normal, Vector3 up ) : float
normal this /// The normal who's slope to calculate. ///
up UnityEngine.Vector3 /// The up direction. ///
리턴 float

Within() 공개 정적인 메소드

Returns a random position inside a box.
public static Within ( this position, float x, float y, float z ) : Vector3
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. ///
리턴 UnityEngine.Vector3