C# Класс Glare.Box3i

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

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

Свойство Тип Описание
Max Vector3i
Min Vector3i
Zero Box3i

Открытые методы

Метод Описание
Box3i ( Int32 minX, Int32 minY, Int32 minZ, Int32 maxX, Int32 maxY, Int32 maxZ ) : System

Create a Box3i by providing minimum and maximum extents.

Box3i ( Vector3i min, Vector3i max ) : System

Create a Box3i by providing minimum and maximum extents.

Distance ( Vector3i point ) : double

Get the closest distance between this Box3i and the Vector3i.

Intersect ( Frustum frustum ) : Containment

Get the intersection between a Box3i and a Frustum.

Intersect ( Vector3i point ) : Containment

Get the intersection type between this box and the point.

NearestPointTo ( Vector3i point ) : Vector3i

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

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

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

Overlaps ( Vector3i point ) : bool

Get whether this Box3i inclusively intersects with the Vector3i.

Random ( Random rng ) : Vector3i

Get a random position within the box.

Random ( Random rng, Vector3i &result ) : void

Get a random position within the box.

Relative ( Int32 minX, Int32 minY, Int32 minZ, Int32 sizeX, Int32 sizeY, Int32 sizeZ ) : Box3i

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

Relative ( Vector3i min, Vector3i size ) : Box3i

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

Relative ( Int32 minX, Int32 minY, Int32 minZ, Int32 sizeX, Int32 sizeY, Int32 sizeZ, Box3i &result ) : void

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

Relative ( Vector3i min, Vector3i size, Box3i &result ) : void

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

ToString ( ) : string

Convert to a string representation of the Box3i.

ToString ( string format, IFormatProvider provider ) : string

Convert to a string representation of the Box3i.

Описание методов

Box3i() публичный Метод

Create a Box3i by providing minimum and maximum extents.
public Box3i ( Int32 minX, Int32 minY, Int32 minZ, Int32 maxX, Int32 maxY, Int32 maxZ ) : System
minX System.Int32
minY System.Int32
minZ System.Int32
maxX System.Int32
maxY System.Int32
maxZ System.Int32
Результат System

Box3i() публичный Метод

Create a Box3i by providing minimum and maximum extents.
public Box3i ( Vector3i min, Vector3i max ) : System
min Vector3i
max Vector3i
Результат System

Distance() публичный Метод

Get the closest distance between this Box3i and the Vector3i.
public Distance ( Vector3i point ) : double
point Vector3i
Результат double

Intersect() публичный Метод

Get the intersection between a Box3i and a Frustum.
public Intersect ( Frustum frustum ) : Containment
frustum Frustum
Результат Containment

Intersect() публичный Метод

Get the intersection type between this box and the point.
public Intersect ( Vector3i point ) : Containment
point Vector3i
Результат Containment

NearestPointTo() публичный Метод

Get the nearest point between this Box3i and a Vector3i. If the Vector3i is inside this Box3i, it is returned untouched.
public NearestPointTo ( Vector3i point ) : Vector3i
point Vector3i
Результат Vector3i

NearestPointTo() публичный Метод

Get the nearest point between this Box3i and a Vector3i. If the Vector3i is inside this Box3i, it is returned untouched.
public NearestPointTo ( Vector3i &point, Vector3i &result ) : void
point Vector3i
result Vector3i
Результат void

Overlaps() публичный Метод

Get whether this Box3i inclusively intersects with the Vector3i.
public Overlaps ( Vector3i point ) : bool
point Vector3i
Результат bool

Random() публичный Метод

Get a random position within the box.
public Random ( Random rng ) : Vector3i
rng System.Random
Результат Vector3i

Random() публичный Метод

Get a random position within the box.
public Random ( Random rng, Vector3i &result ) : void
rng System.Random
result Vector3i
Результат void

Relative() публичный статический Метод

Create a Box3i by providing the minimum extent and the size of each side.
public static Relative ( Int32 minX, Int32 minY, Int32 minZ, Int32 sizeX, Int32 sizeY, Int32 sizeZ ) : Box3i
minX System.Int32
minY System.Int32
minZ System.Int32
sizeX System.Int32
sizeY System.Int32
sizeZ System.Int32
Результат Box3i

Relative() публичный статический Метод

Create a Box3i by providing the minimum extent and the size of each side.
public static Relative ( Vector3i min, Vector3i size ) : Box3i
min Vector3i
size Vector3i
Результат Box3i

Relative() публичный статический Метод

Create a Box3i by providing the minimum extent and the size of each side.
public static Relative ( Int32 minX, Int32 minY, Int32 minZ, Int32 sizeX, Int32 sizeY, Int32 sizeZ, Box3i &result ) : void
minX System.Int32
minY System.Int32
minZ System.Int32
sizeX System.Int32
sizeY System.Int32
sizeZ System.Int32
result Box3i
Результат void

Relative() публичный статический Метод

Create a Box3i by providing the minimum extent and the size of each side.
public static Relative ( Vector3i min, Vector3i size, Box3i &result ) : void
min Vector3i
size Vector3i
result Box3i
Результат void

ToString() публичный Метод

Convert to a string representation of the Box3i.
public ToString ( ) : string
Результат string

ToString() публичный Метод

Convert to a string representation of the Box3i.
public ToString ( string format, IFormatProvider provider ) : string
format string
provider IFormatProvider
Результат string

Описание свойств

Max публичное свойство

The maximum extents of the Box3i.
public Vector3i Max
Результат Vector3i

Min публичное свойство

The minimum extents of the Box3i.
public Vector3i Min
Результат Vector3i

Zero публичное статическое свойство

Get an empty Box3i centred on the origin.
public static Box3i,Glare Zero
Результат Box3i