C# Класс Project290.Mathematics.RectangleLineClipper

Used for clipping lines with a rectangle.
Показать файл Открыть проект

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

Метод Описание
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