C# Класс Glare.Box3

A three-dimensional box that uses Length elements.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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