C# Класс Glare.Box3d

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

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

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

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

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

Create a Box3d by providing minimum and maximum extents.

Box3d ( Vector3d min, Vector3d max ) : System

Create a Box3d by providing minimum and maximum extents.

Distance ( Vector3d point ) : Double

Get the closest distance between this Box3d and the Vector3d.

Intersect ( Frustum frustum ) : Containment

Get the intersection between a Box3d and a Frustum.

Intersect ( Vector3d point ) : Containment

Get the intersection type between this box and the point.

NearestPointTo ( Vector3d point ) : Vector3d

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

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

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

Overlaps ( Vector3d point ) : bool

Get whether this Box3d inclusively intersects with the Vector3d.

Random ( Random rng ) : Vector3d

Get a random position within the box.

Random ( Random rng, Vector3d &result ) : void

Get a random position within the box.

Relative ( Double minX, Double minY, Double minZ, Double sizeX, Double sizeY, Double sizeZ ) : Box3d

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

Relative ( Vector3d min, Vector3d size ) : Box3d

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

Relative ( Double minX, Double minY, Double minZ, Double sizeX, Double sizeY, Double sizeZ, Box3d &result ) : void

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

Relative ( Vector3d min, Vector3d size, Box3d &result ) : void

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

ToString ( ) : string

Convert to a string representation of the Box3d.

ToString ( string format, IFormatProvider provider ) : string

Convert to a string representation of the Box3d.

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

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

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

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

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

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

Get the closest distance between this Box3d and the Vector3d.
public Distance ( Vector3d point ) : Double
point Vector3d
Результат Double

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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