Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

902daa84 ad9e b19a 9d8e 6d277cb0f392

haplokuon edited this page May 6, 2023 · 1 revision

RotateAroundAxis Method

netDxf 3.0.0 Library

Rotate given vector around the specified axis.

Definition

Namespace: netDxf
Assembly: netDxf (in netDxf.dll) Version: 3.0.0

C#

public static Vector3 RotateAroundAxis(
	Vector3 v,
	Vector3 axis,
	double angle
)

VB

Public Shared Function RotateAroundAxis ( 
	v As Vector3,
	axis As Vector3,
	angle As Double
) As Vector3

C++

public:
static Vector3 RotateAroundAxis(
	Vector3 v, 
	Vector3 axis, 
	double angle
)

F#

static member RotateAroundAxis : 
        v : Vector3 * 
        axis : Vector3 * 
        angle : float -> Vector3 

Parameters

  Vector3
Vector to rotate.
  Vector3
Rotation axis.
  Double
Rotation angle in radians.

Return Value

Vector3
The rotated vector.

Remarks

Method provided by: Idelana. Original Author: Paul Bourke ( http://paulbourke.net/geometry/rotate/ )

See Also

Reference

Vector3 Structure
netDxf Namespace

Clone this wiki locally