C# 클래스 Glare.Box4

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

공개 프로퍼티들

프로퍼티 타입 설명
Max System.Vector4
Min System.Vector4
Zero Box4

공개 메소드들

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

Create a Box4 by providing minimum and maximum extents.

Box4 ( System.Vector4 min, System.Vector4 max ) : System

Create a Box4 by providing minimum and maximum extents.

Distance ( System.Vector4 point ) : Length

Get the closest distance between this Box4 and the Vector4.

Intersect ( System.Vector4 point ) : Containment

Get the intersection type between this box and the point.

NearestPointTo ( System.Vector4 point ) : System.Vector4

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

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

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

Overlaps ( System.Vector4 point ) : bool

Get whether this Box4 inclusively intersects with the Vector4.

Random ( Random rng ) : System.Vector4

Get a random position within the box.

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

Get a random position within the box.

Relative ( Length minX, Length minY, Length minZ, Length minW, Length sizeX, Length sizeY, Length sizeZ, Length sizeW ) : Box4

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

Relative ( System.Vector4 min, System.Vector4 size ) : Box4

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

Relative ( Length minX, Length minY, Length minZ, Length minW, Length sizeX, Length sizeY, Length sizeZ, Length sizeW, Box4 &result ) : void

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

Relative ( System.Vector4 min, System.Vector4 size, Box4 &result ) : void

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

ToString ( ) : string

Convert to a string representation of the Box4.

ToString ( string format, IFormatProvider provider ) : string

Convert to a string representation of the Box4.

메소드 상세

Box4() 공개 메소드

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

Box4() 공개 메소드

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

Distance() 공개 메소드

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

Intersect() 공개 메소드

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

NearestPointTo() 공개 메소드

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

NearestPointTo() 공개 메소드

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

Overlaps() 공개 메소드

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

Random() 공개 메소드

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

Random() 공개 메소드

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

Relative() 공개 정적인 메소드

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

Relative() 공개 정적인 메소드

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

Relative() 공개 정적인 메소드

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

Relative() 공개 정적인 메소드

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

ToString() 공개 메소드

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

ToString() 공개 메소드

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

프로퍼티 상세

Max 공개적으로 프로퍼티

The maximum extents of the Box4.
public Vector4,System Max
리턴 System.Vector4

Min 공개적으로 프로퍼티

The minimum extents of the Box4.
public Vector4,System Min
리턴 System.Vector4

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

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