C# 클래스 Glare.Box2f

A two-dimensional box that uses Single elements.
파일 보기 프로젝트 열기: Burton-Radons/Alexandria 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Max Vector2f
Min Vector2f
Zero Box2f

공개 메소드들

메소드 설명
Box2f ( System.Single minX, System.Single minY, System.Single maxX, System.Single maxY ) : System

Create a Box2f by providing minimum and maximum extents.

Box2f ( Vector2f min, Vector2f max ) : System

Create a Box2f by providing minimum and maximum extents.

Distance ( Vector2f point ) : System.Single

Get the closest distance between this Box2f and the Vector2f.

Intersect ( Vector2f point ) : Containment

Get the intersection type between this box and the point.

NearestPointTo ( Vector2f point ) : Vector2f

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

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

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

Overlaps ( Vector2f point ) : bool

Get whether this Box2f inclusively intersects with the Vector2f.

Random ( Random rng ) : Vector2f

Get a random position within the box.

Random ( Random rng, Vector2f &result ) : void

Get a random position within the box.

Relative ( System.Single minX, System.Single minY, System.Single sizeX, System.Single sizeY ) : Box2f

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

Relative ( Vector2f min, Vector2f size ) : Box2f

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

Relative ( System.Single minX, System.Single minY, System.Single sizeX, System.Single sizeY, Box2f &result ) : void

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

Relative ( Vector2f min, Vector2f size, Box2f &result ) : void

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

ToString ( ) : string

Convert to a string representation of the Box2f.

ToString ( string format, IFormatProvider provider ) : string

Convert to a string representation of the Box2f.

메소드 상세

Box2f() 공개 메소드

Create a Box2f by providing minimum and maximum extents.
public Box2f ( System.Single minX, System.Single minY, System.Single maxX, System.Single maxY ) : System
minX System.Single
minY System.Single
maxX System.Single
maxY System.Single
리턴 System

Box2f() 공개 메소드

Create a Box2f by providing minimum and maximum extents.
public Box2f ( Vector2f min, Vector2f max ) : System
min Vector2f
max Vector2f
리턴 System

Distance() 공개 메소드

Get the closest distance between this Box2f and the Vector2f.
public Distance ( Vector2f point ) : System.Single
point Vector2f
리턴 System.Single

Intersect() 공개 메소드

Get the intersection type between this box and the point.
public Intersect ( Vector2f point ) : Containment
point Vector2f
리턴 Containment

NearestPointTo() 공개 메소드

Get the nearest point between this Box2f and a Vector2f. If the Vector2f is inside this Box2f, it is returned untouched.
public NearestPointTo ( Vector2f point ) : Vector2f
point Vector2f
리턴 Vector2f

NearestPointTo() 공개 메소드

Get the nearest point between this Box2f and a Vector2f. If the Vector2f is inside this Box2f, it is returned untouched.
public NearestPointTo ( Vector2f &point, Vector2f &result ) : void
point Vector2f
result Vector2f
리턴 void

Overlaps() 공개 메소드

Get whether this Box2f inclusively intersects with the Vector2f.
public Overlaps ( Vector2f point ) : bool
point Vector2f
리턴 bool

Random() 공개 메소드

Get a random position within the box.
public Random ( Random rng ) : Vector2f
rng System.Random
리턴 Vector2f

Random() 공개 메소드

Get a random position within the box.
public Random ( Random rng, Vector2f &result ) : void
rng System.Random
result Vector2f
리턴 void

Relative() 공개 정적인 메소드

Create a Box2f by providing the minimum extent and the size of each side.
public static Relative ( System.Single minX, System.Single minY, System.Single sizeX, System.Single sizeY ) : Box2f
minX System.Single
minY System.Single
sizeX System.Single
sizeY System.Single
리턴 Box2f

Relative() 공개 정적인 메소드

Create a Box2f by providing the minimum extent and the size of each side.
public static Relative ( Vector2f min, Vector2f size ) : Box2f
min Vector2f
size Vector2f
리턴 Box2f

Relative() 공개 정적인 메소드

Create a Box2f by providing the minimum extent and the size of each side.
public static Relative ( System.Single minX, System.Single minY, System.Single sizeX, System.Single sizeY, Box2f &result ) : void
minX System.Single
minY System.Single
sizeX System.Single
sizeY System.Single
result Box2f
리턴 void

Relative() 공개 정적인 메소드

Create a Box2f by providing the minimum extent and the size of each side.
public static Relative ( Vector2f min, Vector2f size, Box2f &result ) : void
min Vector2f
size Vector2f
result Box2f
리턴 void

ToString() 공개 메소드

Convert to a string representation of the Box2f.
public ToString ( ) : string
리턴 string

ToString() 공개 메소드

Convert to a string representation of the Box2f.
public ToString ( string format, IFormatProvider provider ) : string
format string
provider IFormatProvider
리턴 string

프로퍼티 상세

Max 공개적으로 프로퍼티

The maximum extents of the Box2f.
public Vector2f Max
리턴 Vector2f

Min 공개적으로 프로퍼티

The minimum extents of the Box2f.
public Vector2f Min
리턴 Vector2f

Zero 공개적으로 정적으로 프로퍼티

Get an empty Box2f centred on the origin.
public static Box2f,Glare Zero
리턴 Box2f