Dart Documentationorson_chartsRotate3D

Rotate3D class

A utility class for performing rotations in 3D space.

Constructors

new Rotate3D(Point3D _a, Point3D _b, num _angle) #

Creates a new instance to rotate angle radians about a line passing through a and b.

Properties

num get angle #

Returns the angle of rotation (in radians).

void set angle(num angle) #

Sets the angle of rotation (in radians).

final Point3D pt0 #

Returns the first point defining the axis of rotation (as specified in the constructor).

final Point3D pt1 #

Returns the second point defining the axis of rotation (as specified in the constructor).

Methods

Point3D applyRotation(Point3D p) #

Applies the current rotation to a point p and returns the new point after rotation.

Point3D applyRotationXYZ(num x, num y, num z) #

Applies the current rotation to a point ( x, y, z) and returns the new point after rotation.