You are here: Start » AVL.NET » Function Reference » Point3DGrid » Point3DGrid Spatial Transforms » AVL.AlignPoint3DGridToPlane

AVL.AlignPoint3DGridToPlane

Rotates a grid of 3D points with a rotation that transforms the input plane to be parallel to XY plane.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void AlignPoint3DGridToPlane
(
	AvlNet.Point3DGrid inGrid,
	AvlNet.Plane3D inPlane,
	AvlNet.Point3DGrid outGrid,
	NullableRef<AvlNet.Matrix> outTransform,
	NullableRef<AvlNet.Matrix> outInvertedTransform
)

Parameters

Name Type Range Default Description
inGridAvlNet.Point3DGrid
inPlaneAvlNet.Plane3DThe plane that determines rotation transform.
outGridAvlNet.Point3DGrid
outTransformAvlNet.NullableRef<AvlNet.Matrix>Matrix of the transform used to align the input grid. Can be null to skip this parameter calculation.
outInvertedTransformAvlNet.NullableRef<AvlNet.Matrix>Matrix of the transform rotating the output grid to the input one. Can be null to skip this parameter calculation.

Errors

List of possible exceptions:

Error type Description
DomainError Indefinite plane on input in AlignPoint3DGridToPlane.

Function Overrides

See also