Click or drag to resize

Int64LineSegmentGetAngle Method

Gets the angle between the lines pivot-a and pivot-b

Namespace: Altaxo.Geometry.Int64_2D
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static double GetAngle(
	IntPoint pivot,
	IntPoint a,
	IntPoint b,
	bool returnPositiveValueIf180Degrees
)

Parameters

pivot  IntPoint
The pivot point.
a  IntPoint
The first point.
b  IntPoint
The second point.
returnPositiveValueIf180Degrees  Boolean
If both lines are antiparallel (180 degrees), the angle is not unique (can be -Pi or +Pi). Per default a negative angle (-Pi) is returned, but if this parameter is set to true, then a positive angle (+Pi) will be returned.

Return Value

Double
The angle between the two lines.
See Also