C# Класс Glare.Box3f

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

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

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