Click or drag to resize
Ab4d.SharpEngine logo

MathUtilsGetPerpendicularVectors(Vector3, Vector3, Vector3) Method

Find two vectors that are perpendicular (orthogonal) to the given inputVector and to each other. Both returned vectors are normalized.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public static void GetPerpendicularVectors(
	 in Vector3 inputVector,
	out Vector3 p1,
	out Vector3 p2
)

Parameters

inputVector  Vector3
input vector
p1  Vector3
first perpendicular vector (normalized)
p2  Vector3
second perpendicular vector (normalized)
See Also