Click or drag to resize

UtilCalculateSurfaceNormal Method

Determine the normal to the plane defined by 3 points (origin, left and right).

Namespace:  Demo3D.Common
Assembly:  Demo3D.Common (in Demo3D.Common.dll) Version: 15.0.2.11458
Syntax
C#
public static Vector3 CalculateSurfaceNormal(
	Vector3 v1,
	Vector3 v2,
	Vector3 v3
)

Parameters

v1
Type: Microsoft.DirectXVector3
Origin point
v2
Type: Microsoft.DirectXVector3
Left point
v3
Type: Microsoft.DirectXVector3
Right point

Return Value

Type: Vector3
Surface normal
See Also