Modifier and Type | Field and Description |
---|---|
static Radius |
ZERO
The ZERO Radius object.
|
Modifier and Type | Method and Description |
---|---|
protected Radius |
create(double value) |
static Radius |
fromDiameter(double diameter)
Creates a Radius object based on the given diameter.
|
static Radius |
fromRadius(double radius)
Creates a Radius object based on the given radius.
|
double |
getDiameter()
Returns with the diameter.
|
double |
getRadius()
Returns with the radius.
|
Radius |
plusDiameter(double delta)
Adds the given delta to the diameter and returns with a new Radius object.
|
Radius |
plusRadius(double delta)
Adds the given delta to the radius and returns with a new Radius object.
|
protected Radius |
thisOne() |
List<Coords3d> |
toCircle(int numberOfItems,
double offset,
double z)
Create moves for a circle of items with this radius.
|
Coords2d |
toCoordinate(Angle alpha)
Calculates the coordinate for the given alpha angle for this radius.
|
String |
toString() |
public static final Radius ZERO
public static Radius fromRadius(double radius)
radius
- the radius to be usedpublic static Radius fromDiameter(double diameter)
diameter
- the diameter to be usedpublic double getRadius()
public double getDiameter()
public Coords2d toCoordinate(Angle alpha)
alpha
- the anglepublic List<Coords3d> toCircle(int numberOfItems, double offset, double z)
numberOfItems
- the number of itemsoffset
- the offset - meaningful between 0 and 1z
- the z value of the coordinatespublic Radius plusRadius(double delta)
delta
- the delta radiuspublic Radius plusDiameter(double delta)
delta
- the delta diameterCopyright © 2014–2020, Printing in 3D. All rights reserved.