Table of Contents

Method Intersection

Namespace
SharpVectors.Dom.Svg
Assembly
SharpVectors.Model.dll

Intersection(SvgRect)

This replaces this SvgRect structure with the intersection of itself and the specified SvgRect structure.

public void Intersection(SvgRect rect)

Parameters

rect SvgRect

The rectangle to intersect.

Intersection(SvgRect, SvgRect)

Returns a SvgRect structure that represents the intersection of two rectangles. If there is no intersection, and empty SvgRect is returned.

public static SvgRect Intersection(SvgRect a, SvgRect b)

Parameters

a SvgRect

A rectangle to intersect.

b SvgRect

A rectangle to intersect.

Returns

SvgRect

A third SvgRect structure the size of which represents the overlapped area of the two specified rectangles.