Click or drag to resize

CMATHRotateVector Method

Rotate a vector about an axis.

Namespace:  GeoEngine.Core.GXNetX
Assembly:  geoengine.core.gxnetx (in geoengine.core.gxnetx.dll) Version: 2024.2.0.25
Syntax
public static void RotateVector(
	CGXNETCore gxNetShared,
	double x1,
	double y1,
	double z1,
	double angle,
	double x2,
	double y2,
	double z2,
	ref double x3,
	ref double y3,
	ref double z3
)

public static void RotateVector(
	CGXNETCore gxNetShared,
	double x1,
	double y1,
	double z1,
	double angle,
	double x2,
	double y2,
	double z2,
	ref double x3,
	ref double y3,
	ref double z3
)

Parameters

gxNetShared
Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore
x1
Type: SystemDouble
X1 component (vector to rotate)
y1
Type: SystemDouble
Y1 component
z1
Type: SystemDouble
Z1 component
angle
Type: SystemDouble
Angle to rotate, CW in radians
x2
Type: SystemDouble
X2 component (axis of rotation)
y2
Type: SystemDouble
Y2 component
z2
Type: SystemDouble
Z2 component
x3
Type: SystemDouble
X3 component (rotated vector, can
y3
Type: SystemDouble
Y3 component be the same as input)
z3
Type: SystemDouble
Z3 component
Remarks
Rotates a vector by the input angle around an arbitrary axis. Angles are measured clockwise looking along the axis (away from the origin). Assumes a right hand coordinate system.
See Also