PHP 7.4.33
Preview: ArcCurve.js Size: 1.04 KB
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/three/src/extras/curves/ArcCurve.js
import { EllipseCurve } from './EllipseCurve.js';

/**
 * A curve representing an arc.
 *
 * @augments EllipseCurve
 */
class ArcCurve extends EllipseCurve {

	/**
	 * Constructs a new arc curve.
	 *
	 * @param {number} [aX=0] - The X center of the ellipse.
	 * @param {number} [aY=0] - The Y center of the ellipse.
	 * @param {number} [aRadius=1] - The radius of the ellipse in the x direction.
	 * @param {number} [aStartAngle=0] - The start angle of the curve in radians starting from the positive X axis.
	 * @param {number} [aEndAngle=Math.PI*2] - The end angle of the curve in radians starting from the positive X axis.
	 * @param {boolean} [aClockwise=false] - Whether the ellipse is drawn clockwise or not.
	 */
	constructor( aX, aY, aRadius, aStartAngle, aEndAngle, aClockwise ) {

		super( aX, aY, aRadius, aRadius, aStartAngle, aEndAngle, aClockwise );

		/**
		 * This flag can be used for type testing.
		 *
		 * @type {boolean}
		 * @readonly
		 * @default true
		 */
		this.isArcCurve = true;

		this.type = 'ArcCurve';

	}

}

export { ArcCurve };

Directory Contents

Dirs: 0 × Files: 11
Name Size Perms Modified Actions
1.04 KB lrw-r--r-- 2025-03-28 11:04:37
Edit Download
7.16 KB lrw-r--r-- 2025-03-28 11:04:37
Edit Download
2.76 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
2.32 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
540 B lrw-r--r-- 2025-03-28 11:04:38
Edit Download
5.41 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
2.02 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
2.02 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
2.49 KB lrw-r--r-- 2025-03-28 11:04:39
Edit Download
2.07 KB lrw-r--r-- 2025-03-28 11:04:39
Edit Download
2.89 KB lrw-r--r-- 2025-03-28 11:04:39
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).