 | CMATHRotateVector Method |
Rotate a vector about an axis.
Namespace:
GeoEngine.Core.GXNet
Assembly:
geoengine.core.gxnet (in geoengine.core.gxnet.dll) Version: 2024.2.0.25
Syntaxpublic static void RotateVector(
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(
double x1,
double y1,
double z1,
double angle,
double x2,
double y2,
double z2,
ref double x3,
ref double y3,
ref double z3
)
Public Shared Sub RotateVector (
x1 As Double,
y1 As Double,
z1 As Double,
angle As Double,
x2 As Double,
y2 As Double,
z2 As Double,
ByRef x3 As Double,
ByRef y3 As Double,
ByRef z3 As Double
)
Public Shared Sub RotateVector (
x1 As Double,
y1 As Double,
z1 As Double,
angle As Double,
x2 As Double,
y2 As Double,
z2 As Double,
ByRef x3 As Double,
ByRef y3 As Double,
ByRef z3 As Double
)
public:
static void RotateVector(
double x1,
double y1,
double z1,
double angle,
double x2,
double y2,
double z2,
double% x3,
double% y3,
double% z3
)
public:
static void RotateVector(
double x1,
double y1,
double z1,
double angle,
double x2,
double y2,
double z2,
double% x3,
double% y3,
double% z3
)
static member RotateVector :
x1 : float *
y1 : float *
z1 : float *
angle : float *
x2 : float *
y2 : float *
z2 : float *
x3 : float byref *
y3 : float byref *
z3 : float byref -> unit
static member RotateVector :
x1 : float *
y1 : float *
z1 : float *
angle : float *
x2 : float *
y2 : float *
z2 : float *
x3 : float byref *
y3 : float byref *
z3 : float byref -> unit
Parameters
- 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