CADability dotNET
Tests whether an object is inside or touched by the rectangle when projected with the provided projection

Namespace: CADability
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)

Syntax

C#
bool HitTest(
	Projection projection,
	BoundingRect rect,
	bool onlyInside
)
Visual Basic
Function HitTest ( _
	projection As Projection, _
	rect As BoundingRect, _
	onlyInside As Boolean _
) As Boolean
Visual C++
bool HitTest(
	Projection^ projection, 
	BoundingRect rect, 
	bool onlyInside
)

Parameters

projection
Type: CADability..::..Projection
The projection for the test
rect
Type: CADability..::..BoundingRect
The rectangle to test the position
onlyInside
Type: System..::..Boolean
true: the object must be totaly inside the rectangle, false: the object must be totaly or partially inside the rectangle

Return Value

true when the test succeedes, false otherwise

See Also