C# Класс Glare.Box4f

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

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

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