C# 클래스 fCraft.BoundingBox

Defines a 3D bounding box, in integer cartesian coordinates
파일 보기 프로젝트 열기: fragmer/fCraft 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Empty BoundingBox
XMin int

공개 메소드들

메소드 설명
BoundingBox ( Position p1, Position p2 ) : System
BoundingBox ( Position pos, int widthX, int widthY, int height ) : System
BoundingBox ( System.Xml.Linq.XElement root ) : System
BoundingBox ( int x1, int y1, int h1, int x2, int y2, int h2 ) : System
Contains ( BoundingBox other ) : bool

Checks if another bounding box is wholly contained inside this one.

Contains ( int x, int y, int h ) : bool

Checks if a given point is inside this bounding box.

GetIntersection ( BoundingBox other ) : BoundingBox

Returns a BoundingBox object that describes the space shared between this and another box. Returns BoundingBox.Empty if there is no intersection.

Insersects ( BoundingBox other ) : bool

Checks whether this bounding box intersects/touches another one.

Serialize ( ) : System.Xml.Linq.XElement
Serialize ( string customElementName ) : System.Xml.Linq.XElement

메소드 상세

BoundingBox() 공개 메소드

public BoundingBox ( Position p1, Position p2 ) : System
p1 Position
p2 Position
리턴 System

BoundingBox() 공개 메소드

public BoundingBox ( Position pos, int widthX, int widthY, int height ) : System
pos Position
widthX int
widthY int
height int
리턴 System

BoundingBox() 공개 메소드

public BoundingBox ( System.Xml.Linq.XElement root ) : System
root System.Xml.Linq.XElement
리턴 System

BoundingBox() 공개 메소드

public BoundingBox ( int x1, int y1, int h1, int x2, int y2, int h2 ) : System
x1 int
y1 int
h1 int
x2 int
y2 int
h2 int
리턴 System

Contains() 공개 메소드

Checks if another bounding box is wholly contained inside this one.
public Contains ( BoundingBox other ) : bool
other BoundingBox
리턴 bool

Contains() 공개 메소드

Checks if a given point is inside this bounding box.
public Contains ( int x, int y, int h ) : bool
x int
y int
h int
리턴 bool

GetIntersection() 공개 메소드

Returns a BoundingBox object that describes the space shared between this and another box. Returns BoundingBox.Empty if there is no intersection.
public GetIntersection ( BoundingBox other ) : BoundingBox
other BoundingBox
리턴 BoundingBox

Insersects() 공개 메소드

Checks whether this bounding box intersects/touches another one.
public Insersects ( BoundingBox other ) : bool
other BoundingBox
리턴 bool

Serialize() 공개 메소드

public Serialize ( ) : System.Xml.Linq.XElement
리턴 System.Xml.Linq.XElement

Serialize() 공개 메소드

public Serialize ( string customElementName ) : System.Xml.Linq.XElement
customElementName string
리턴 System.Xml.Linq.XElement

프로퍼티 상세

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

public static BoundingBox,fCraft Empty
리턴 BoundingBox

XMin 공개적으로 프로퍼티

public int XMin
리턴 int