Click or drag to resize

GdiExtensionMethodsDotProduct Method

Calculates the dot product of two points interpreted as vectors.

Namespace: Altaxo.Graph.Gdi
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static float DotProduct(
	this PointF p,
	PointF q
)

Parameters

p  PointF
The first vector.
q  PointF
The second vector.

Return Value

Single
The dot product.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type PointF. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also