C# 클래스 Project290.Mathematics.RectangleLineClipper

Used for clipping lines with a rectangle.
파일 보기 프로젝트 열기: scastle/Solitude

공개 메소드들

메소드 설명
ClipLine ( Vector2 &pointA, Vector2 &pointB, Rectangle &clippingRectangle ) : bool

Clips the specified line. Returns false if this does not lie within the specified rectangle. Otherwise, modifies the points.

비공개 메소드들

메소드 설명
CheckLine ( Vector2 &pointA, Vector2 &pointB, Rectangle &clippingRectangle ) : bool

Checks the line.

메소드 상세

ClipLine() 공개 정적인 메소드

Clips the specified line. Returns false if this does not lie within the specified rectangle. Otherwise, modifies the points.
public static ClipLine ( Vector2 &pointA, Vector2 &pointB, Rectangle &clippingRectangle ) : bool
pointA Vector2 The point A.
pointB Vector2 The point B.
clippingRectangle Microsoft.Xna.Framework.Rectangle
리턴 bool