C# 클래스 Glare.Box3d

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

공개 프로퍼티들

프로퍼티 타입 설명
Max Vector3d
Min Vector3d
Zero Box3d

공개 메소드들

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

Create a Box3d by providing minimum and maximum extents.

Box3d ( Vector3d min, Vector3d max ) : System

Create a Box3d by providing minimum and maximum extents.

Distance ( Vector3d point ) : Double

Get the closest distance between this Box3d and the Vector3d.

Intersect ( Frustum frustum ) : Containment

Get the intersection between a Box3d and a Frustum.

Intersect ( Vector3d point ) : Containment

Get the intersection type between this box and the point.

NearestPointTo ( Vector3d point ) : Vector3d

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

NearestPointTo ( Vector3d &point, Vector3d &result ) : void

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

Overlaps ( Vector3d point ) : bool

Get whether this Box3d inclusively intersects with the Vector3d.

Random ( Random rng ) : Vector3d

Get a random position within the box.

Random ( Random rng, Vector3d &result ) : void

Get a random position within the box.

Relative ( Double minX, Double minY, Double minZ, Double sizeX, Double sizeY, Double sizeZ ) : Box3d

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

Relative ( Vector3d min, Vector3d size ) : Box3d

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

Relative ( Double minX, Double minY, Double minZ, Double sizeX, Double sizeY, Double sizeZ, Box3d &result ) : void

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

Relative ( Vector3d min, Vector3d size, Box3d &result ) : void

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

ToString ( ) : string

Convert to a string representation of the Box3d.

ToString ( string format, IFormatProvider provider ) : string

Convert to a string representation of the Box3d.

메소드 상세

Box3d() 공개 메소드

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

Box3d() 공개 메소드

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

Distance() 공개 메소드

Get the closest distance between this Box3d and the Vector3d.
public Distance ( Vector3d point ) : Double
point Vector3d
리턴 Double

Intersect() 공개 메소드

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

Intersect() 공개 메소드

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

NearestPointTo() 공개 메소드

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

NearestPointTo() 공개 메소드

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

Overlaps() 공개 메소드

Get whether this Box3d inclusively intersects with the Vector3d.
public Overlaps ( Vector3d point ) : bool
point Vector3d
리턴 bool

Random() 공개 메소드

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

Random() 공개 메소드

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

Relative() 공개 정적인 메소드

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

Relative() 공개 정적인 메소드

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

Relative() 공개 정적인 메소드

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

Relative() 공개 정적인 메소드

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

ToString() 공개 메소드

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

ToString() 공개 메소드

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

프로퍼티 상세

Max 공개적으로 프로퍼티

The maximum extents of the Box3d.
public Vector3d Max
리턴 Vector3d

Min 공개적으로 프로퍼티

The minimum extents of the Box3d.
public Vector3d Min
리턴 Vector3d

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

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