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.3448.0 (4.8.3448.0)
Syntax
C#
public static double GetAngle(
	Point64 pivot,
	Point64 a,
	Point64 b,
	bool returnPositiveValueIf180Degrees
)

Parameters

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

Return Value

Double
The angle between the two lines in radians.
See Also