NShape Reference
Shape.CalculateNormalVector Method

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape > Shape Class >

NShape Reference
Shape.CalculateNormalVector Method

Previous pageReturn to chapter overviewNext page

Calculates a vector perpendicular to the shape's outline.

Syntax

public abstract Point CalculateNormalVector(int x, int y)

Description

X, y must define a point on the outline of the shape. If they do not, the result of this function is undefined. If they do, the result is a point such that the vector from (x, y) to the result point is perpendicular to the shape's outline and has a length of 100.

Parameters

Name

Description

x, y

Coordinates of foot

Return Value

End point of normal vector.

Exceptions

None