public class Angles3d extends Basic3dFunc<Angles3d>
Modifier and Type | Field and Description |
---|---|
static Angles3d |
ROTATE_MINUS_X
rotating on the X plane by -90 degrees.
|
static Angles3d |
ROTATE_MINUS_Y
rotating on the Y plane by -90 degrees.
|
static Angles3d |
ROTATE_MINUS_Z
rotating on the Z plane by -90 degrees.
|
static Angles3d |
ROTATE_PLUS_X
rotating on the X plane by +90 degrees.
|
static Angles3d |
ROTATE_PLUS_Y
rotating on the Y plane by +90 degrees.
|
static Angles3d |
ROTATE_PLUS_Z
rotating on the Z plane by +90 degrees.
|
static Angles3d |
ZERO
the zero angle, which does nothing - usually used as a starting point.
|
x, y, z
Constructor and Description |
---|
Angles3d(double x,
double y,
double z)
Create a new angle object with the given X, Y and Z value.
|
Modifier and Type | Method and Description |
---|---|
protected Angles3d |
create(double x,
double y,
double z) |
boolean |
equals(Object obj) |
protected Angle |
getXAngle() |
protected Angle |
getYAngle() |
protected Angle |
getZAngle() |
int |
hashCode() |
Angles3d |
rotate(Angles3d delta)
Rotates the current value by the given value - this object won't change, but
a new object will be created.
|
static Angles3d |
xOnly(double x)
Rotating only around the X axis.
|
static Angles3d |
yOnly(double y)
Rotating only around the Y axis.
|
static Angles3d |
zOnly(double z)
Rotating only around the Z axis.
|
add, createVariances, distance, inverse, mul, mul, withX, withY, withZ
closeEquals, dot, format, getX, getY, getZ, isIdent, isXZero, isYZero, isZero, isZZero, magnitude, toByteArray, toString
public static final Angles3d ZERO
public static final Angles3d ROTATE_PLUS_X
public static final Angles3d ROTATE_MINUS_X
public static final Angles3d ROTATE_PLUS_Y
public static final Angles3d ROTATE_MINUS_Y
public static final Angles3d ROTATE_PLUS_Z
public static final Angles3d ROTATE_MINUS_Z
public Angles3d(double x, double y, double z)
x
- the angle on the X planey
- the angle on the Y planez
- the angle on the Z planepublic static Angles3d xOnly(double x)
x
- the angle in degreepublic static Angles3d yOnly(double y)
y
- the angle in degreepublic static Angles3d zOnly(double z)
z
- the angle in degreepublic Angles3d rotate(Angles3d delta)
delta
- the angle of the rotationprotected Angle getXAngle()
protected Angle getYAngle()
protected Angle getZAngle()
public boolean equals(Object obj)
equals
in class Abstract3d
public int hashCode()
hashCode
in class Abstract3d
protected Angles3d create(double x, double y, double z)
create
in class Basic3dFunc<Angles3d>
Copyright © 2014–2020, Printing in 3D. All rights reserved.