C# 클래스 Glare.Box4f

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

공개 프로퍼티들

프로퍼티 타입 설명
Max Vector4f
Min Vector4f
Zero Box4f

공개 메소드들

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

Create a Box4f by providing minimum and maximum extents.

Box4f ( Vector4f min, Vector4f max ) : System

Create a Box4f by providing minimum and maximum extents.

Distance ( Vector4f point ) : System.Single

Get the closest distance between this Box4f and the Vector4f.

Intersect ( Vector4f point ) : Containment

Get the intersection type between this box and the point.

NearestPointTo ( Vector4f point ) : Vector4f

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

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

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

Overlaps ( Vector4f point ) : bool

Get whether this Box4f inclusively intersects with the Vector4f.

Random ( Random rng ) : Vector4f

Get a random position within the box.

Random ( Random rng, Vector4f &result ) : void

Get a random position within the box.

Relative ( System.Single minX, System.Single minY, System.Single minZ, System.Single minW, System.Single sizeX, System.Single sizeY, System.Single sizeZ, System.Single sizeW ) : Box4f

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

Relative ( Vector4f min, Vector4f size ) : Box4f

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

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

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

Relative ( Vector4f min, Vector4f size, Box4f &result ) : void

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

ToString ( ) : string

Convert to a string representation of the Box4f.

ToString ( string format, IFormatProvider provider ) : string

Convert to a string representation of the Box4f.

메소드 상세

Box4f() 공개 메소드

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

Box4f() 공개 메소드

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

Distance() 공개 메소드

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

Intersect() 공개 메소드

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

NearestPointTo() 공개 메소드

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

NearestPointTo() 공개 메소드

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

Overlaps() 공개 메소드

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

Random() 공개 메소드

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

Random() 공개 메소드

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

Relative() 공개 정적인 메소드

Create a Box4f 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 minW, System.Single sizeX, System.Single sizeY, System.Single sizeZ, System.Single sizeW ) : Box4f
minX System.Single
minY System.Single
minZ System.Single
minW System.Single
sizeX System.Single
sizeY System.Single
sizeZ System.Single
sizeW System.Single
리턴 Box4f

Relative() 공개 정적인 메소드

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

Relative() 공개 정적인 메소드

Create a Box4f 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 minW, System.Single sizeX, System.Single sizeY, System.Single sizeZ, System.Single sizeW, Box4f &result ) : void
minX System.Single
minY System.Single
minZ System.Single
minW System.Single
sizeX System.Single
sizeY System.Single
sizeZ System.Single
sizeW System.Single
result Box4f
리턴 void

Relative() 공개 정적인 메소드

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

ToString() 공개 메소드

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

ToString() 공개 메소드

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

프로퍼티 상세

Max 공개적으로 프로퍼티

The maximum extents of the Box4f.
public Vector4f Max
리턴 Vector4f

Min 공개적으로 프로퍼티

The minimum extents of the Box4f.
public Vector4f Min
리턴 Vector4f

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

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