public final class Disk extends AbstractEllipse implements Serializable
The disk is defined by a center, a normal to the plane containing the disk, and a radius.
This class implements the SolidShape interface.
SolidShape
,
Serialized Form
// normal to the disk
final Vector3D normPlane = new Vector3D(...);
// center of the disk
final Vector3D centerDisk = new Vector3D(...);
// Radius of the disk
final double diskRadius = 6.55957;
// We create the disk
final Disk myDisk = new Disk(centerDisk, normPlane, diskRadius);
final double rez = capDisk.distanceTo(something);
Constructor and Description |
---|
Disk(Vector3D center,
Vector3D normal,
double radius)
Constructs the disk.
|
Modifier and Type | Method and Description |
---|---|
String |
toString()
Get a string representation for this disk.
|
closestPointTo, closestPointTo, distanceTo, distanceTo, getCenter, getIntersectionPoints, getNormal, getRadiusA, getRadiusB, getU, getV, intersects
Copyright © 2019 CNES. All rights reserved.