C# 클래스 UnityEngine.GeometryUtility

Utility class for common geometric functions.

파일 보기 프로젝트 열기: CarlosHBC/UnityDecompiled 1 사용 예제들

공개 메소드들

메소드 설명
CalculateBounds ( Vector3 positions, Matrix4x4 transform ) : Bounds

Calculates a bounding box given an array of positions and a transformation matrix.

CalculateFrustumPlanes ( Camera camera ) : UnityEngine.Plane[]

Calculates frustum planes.

CalculateFrustumPlanes ( Matrix4x4 worldToProjectionMatrix ) : UnityEngine.Plane[]

Calculates frustum planes.

TestPlanesAABB ( Plane planes, Bounds bounds ) : bool

Returns true if bounds are inside the plane array.

비공개 메소드들

메소드 설명
INTERNAL_CALL_CalculateBounds ( Vector3 positions, Matrix4x4 &transform, Bounds &value ) : void
INTERNAL_CALL_Internal_ExtractPlanes ( Plane planes, Matrix4x4 &worldToProjectionMatrix ) : void
INTERNAL_CALL_TestPlanesAABB ( Plane planes, Bounds &bounds ) : bool
Internal_ExtractPlanes ( Plane planes, Matrix4x4 worldToProjectionMatrix ) : void

메소드 상세

CalculateBounds() 공개 정적인 메소드

Calculates a bounding box given an array of positions and a transformation matrix.

public static CalculateBounds ( Vector3 positions, Matrix4x4 transform ) : Bounds
positions Vector3
transform Matrix4x4
리턴 Bounds

CalculateFrustumPlanes() 공개 정적인 메소드

Calculates frustum planes.

public static CalculateFrustumPlanes ( Camera camera ) : UnityEngine.Plane[]
camera Camera
리턴 UnityEngine.Plane[]

CalculateFrustumPlanes() 공개 정적인 메소드

Calculates frustum planes.

public static CalculateFrustumPlanes ( Matrix4x4 worldToProjectionMatrix ) : UnityEngine.Plane[]
worldToProjectionMatrix Matrix4x4
리턴 UnityEngine.Plane[]

TestPlanesAABB() 공개 정적인 메소드

Returns true if bounds are inside the plane array.

public static TestPlanesAABB ( Plane planes, Bounds bounds ) : bool
planes Plane
bounds Bounds
리턴 bool