C# 클래스 Glare.Box3f

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

공개 프로퍼티들

프로퍼티 타입 설명
Max Vector3f
Min Vector3f
Zero Box3f

공개 메소드들

메소드 설명
Box3f ( System.Single minX, System.Single minY, System.Single minZ, System.Single maxX, System.Single maxY, System.Single maxZ ) : System

Create a Box3f by providing minimum and maximum extents.

Box3f ( Vector3f min, Vector3f max ) : System

Create a Box3f by providing minimum and maximum extents.

Distance ( Vector3f point ) : System.Single

Get the closest distance between this Box3f and the Vector3f.

Intersect ( Frustum frustum ) : Containment

Get the intersection between a Box3f and a Frustum.

Intersect ( Vector3f point ) : Containment

Get the intersection type between this box and the point.

NearestPointTo ( Vector3f point ) : Vector3f

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

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

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

Overlaps ( Vector3f point ) : bool

Get whether this Box3f inclusively intersects with the Vector3f.

Random ( Random rng ) : Vector3f

Get a random position within the box.

Random ( Random rng, Vector3f &result ) : void

Get a random position within the box.

Relative ( System.Single minX, System.Single minY, System.Single minZ, System.Single sizeX, System.Single sizeY, System.Single sizeZ ) : Box3f

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

Relative ( Vector3f min, Vector3f size ) : Box3f

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

Relative ( System.Single minX, System.Single minY, System.Single minZ, System.Single sizeX, System.Single sizeY, System.Single sizeZ, Box3f &result ) : void

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

Relative ( Vector3f min, Vector3f size, Box3f &result ) : void

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

ToString ( ) : string

Convert to a string representation of the Box3f.

ToString ( string format, IFormatProvider provider ) : string

Convert to a string representation of the Box3f.

메소드 상세

Box3f() 공개 메소드

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

Box3f() 공개 메소드

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

Distance() 공개 메소드

Get the closest distance between this Box3f and the Vector3f.
public Distance ( Vector3f point ) : System.Single
point Vector3f
리턴 System.Single

Intersect() 공개 메소드

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

Intersect() 공개 메소드

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

NearestPointTo() 공개 메소드

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

NearestPointTo() 공개 메소드

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

Overlaps() 공개 메소드

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

Random() 공개 메소드

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

Random() 공개 메소드

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

Relative() 공개 정적인 메소드

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

Relative() 공개 정적인 메소드

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

Relative() 공개 정적인 메소드

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

Relative() 공개 정적인 메소드

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

ToString() 공개 메소드

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

ToString() 공개 메소드

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

프로퍼티 상세

Max 공개적으로 프로퍼티

The maximum extents of the Box3f.
public Vector3f Max
리턴 Vector3f

Min 공개적으로 프로퍼티

The minimum extents of the Box3f.
public Vector3f Min
리턴 Vector3f

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

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