C# 클래스 Glare.Box3

A three-dimensional box that uses Length elements.
파일 보기 프로젝트 열기: Burton-Radons/Alexandria 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Max System.Vector3
Min System.Vector3
Zero Box3

공개 메소드들

메소드 설명
Box3 ( Length minX, Length minY, Length minZ, Length maxX, Length maxY, Length maxZ ) : System

Create a Box3 by providing minimum and maximum extents.

Box3 ( System.Vector3 min, System.Vector3 max ) : System

Create a Box3 by providing minimum and maximum extents.

Distance ( System.Vector3 point ) : Length

Get the closest distance between this Box3 and the Vector3.

Intersect ( Frustum frustum ) : Containment

Get the intersection between a Box3 and a Frustum.

Intersect ( System.Vector3 point ) : Containment

Get the intersection type between this box and the point.

NearestPointTo ( System.Vector3 point ) : System.Vector3

Get the nearest point between this Box3 and a Vector3. If the Vector3 is inside this Box3, it is returned untouched.

NearestPointTo ( System.Vector3 &point, System.Vector3 &result ) : void

Get the nearest point between this Box3 and a Vector3. If the Vector3 is inside this Box3, it is returned untouched.

Overlaps ( System.Vector3 point ) : bool

Get whether this Box3 inclusively intersects with the Vector3.

Random ( Random rng ) : System.Vector3

Get a random position within the box.

Random ( Random rng, System.Vector3 &result ) : void

Get a random position within the box.

Relative ( Length minX, Length minY, Length minZ, Length sizeX, Length sizeY, Length sizeZ ) : Box3

Create a Box3 by providing the minimum extent and the size of each side.

Relative ( System.Vector3 min, System.Vector3 size ) : Box3

Create a Box3 by providing the minimum extent and the size of each side.

Relative ( Length minX, Length minY, Length minZ, Length sizeX, Length sizeY, Length sizeZ, Box3 &result ) : void

Create a Box3 by providing the minimum extent and the size of each side.

Relative ( System.Vector3 min, System.Vector3 size, Box3 &result ) : void

Create a Box3 by providing the minimum extent and the size of each side.

ToString ( ) : string

Convert to a string representation of the Box3.

ToString ( string format, IFormatProvider provider ) : string

Convert to a string representation of the Box3.

메소드 상세

Box3() 공개 메소드

Create a Box3 by providing minimum and maximum extents.
public Box3 ( Length minX, Length minY, Length minZ, Length maxX, Length maxY, Length maxZ ) : System
minX Length
minY Length
minZ Length
maxX Length
maxY Length
maxZ Length
리턴 System

Box3() 공개 메소드

Create a Box3 by providing minimum and maximum extents.
public Box3 ( System.Vector3 min, System.Vector3 max ) : System
min System.Vector3
max System.Vector3
리턴 System

Distance() 공개 메소드

Get the closest distance between this Box3 and the Vector3.
public Distance ( System.Vector3 point ) : Length
point System.Vector3
리턴 Length

Intersect() 공개 메소드

Get the intersection between a Box3 and a Frustum.
public Intersect ( Frustum frustum ) : Containment
frustum Frustum
리턴 Containment

Intersect() 공개 메소드

Get the intersection type between this box and the point.
public Intersect ( System.Vector3 point ) : Containment
point System.Vector3
리턴 Containment

NearestPointTo() 공개 메소드

Get the nearest point between this Box3 and a Vector3. If the Vector3 is inside this Box3, it is returned untouched.
public NearestPointTo ( System.Vector3 point ) : System.Vector3
point System.Vector3
리턴 System.Vector3

NearestPointTo() 공개 메소드

Get the nearest point between this Box3 and a Vector3. If the Vector3 is inside this Box3, it is returned untouched.
public NearestPointTo ( System.Vector3 &point, System.Vector3 &result ) : void
point System.Vector3
result System.Vector3
리턴 void

Overlaps() 공개 메소드

Get whether this Box3 inclusively intersects with the Vector3.
public Overlaps ( System.Vector3 point ) : bool
point System.Vector3
리턴 bool

Random() 공개 메소드

Get a random position within the box.
public Random ( Random rng ) : System.Vector3
rng System.Random
리턴 System.Vector3

Random() 공개 메소드

Get a random position within the box.
public Random ( Random rng, System.Vector3 &result ) : void
rng System.Random
result System.Vector3
리턴 void

Relative() 공개 정적인 메소드

Create a Box3 by providing the minimum extent and the size of each side.
public static Relative ( Length minX, Length minY, Length minZ, Length sizeX, Length sizeY, Length sizeZ ) : Box3
minX Length
minY Length
minZ Length
sizeX Length
sizeY Length
sizeZ Length
리턴 Box3

Relative() 공개 정적인 메소드

Create a Box3 by providing the minimum extent and the size of each side.
public static Relative ( System.Vector3 min, System.Vector3 size ) : Box3
min System.Vector3
size System.Vector3
리턴 Box3

Relative() 공개 정적인 메소드

Create a Box3 by providing the minimum extent and the size of each side.
public static Relative ( Length minX, Length minY, Length minZ, Length sizeX, Length sizeY, Length sizeZ, Box3 &result ) : void
minX Length
minY Length
minZ Length
sizeX Length
sizeY Length
sizeZ Length
result Box3
리턴 void

Relative() 공개 정적인 메소드

Create a Box3 by providing the minimum extent and the size of each side.
public static Relative ( System.Vector3 min, System.Vector3 size, Box3 &result ) : void
min System.Vector3
size System.Vector3
result Box3
리턴 void

ToString() 공개 메소드

Convert to a string representation of the Box3.
public ToString ( ) : string
리턴 string

ToString() 공개 메소드

Convert to a string representation of the Box3.
public ToString ( string format, IFormatProvider provider ) : string
format string
provider IFormatProvider
리턴 string

프로퍼티 상세

Max 공개적으로 프로퍼티

The maximum extents of the Box3.
public Vector3,System Max
리턴 System.Vector3

Min 공개적으로 프로퍼티

The minimum extents of the Box3.
public Vector3,System Min
리턴 System.Vector3

Zero 공개적으로 정적으로 프로퍼티

Get an empty Box3 centred on the origin.
public static Box3,Glare Zero
리턴 Box3