HE_Mesh
5.1.2
|
Public Member Functions | |
WB_Vector () | |
WB_Vector (final double x, final double y) | |
WB_Vector (final double x, final double y, final double z) | |
WB_Vector (final double[] x) | |
WB_Vector (final double[] fromPoint, final double[] toPoint) | |
WB_Vector (final WB_Coord v) | |
WB_Vector (final WB_Coord fromPoint, final WB_Coord toPoint) | |
WB_Vector | add (final double...x) |
WB_Vector | add (final WB_Coord p) |
WB_Vector | sub (final double...x) |
WB_Vector | sub (final WB_Coord p) |
WB_Vector | mul (final double f) |
WB_Vector | div (final double f) |
WB_Vector | addMul (final double f, final double...x) |
WB_Vector | addMul (final double f, final WB_Coord p) |
WB_Vector | mulAddMul (final double f, final double g, final WB_Coord p) |
WB_Vector | mulAddMul (final double f, final double g, final double...x) |
void | addInto (final WB_MutableCoord result, final double...x) |
void | addInto (final WB_MutableCoord result, final WB_Coord p) |
void | subInto (final WB_MutableCoord result, final double...x) |
void | subInto (final WB_MutableCoord result, final WB_Coord p) |
void | mulInto (final WB_MutableCoord result, final double f) |
void | divInto (final WB_MutableCoord result, final double f) |
void | addMulInto (final WB_MutableCoord result, final double f, final double...x) |
void | addMulInto (final WB_MutableCoord result, final double f, final WB_Coord p) |
void | mulAddMulInto (final WB_MutableCoord result, final double f, final double g, final WB_Coord p) |
void | mulAddMulInto (final WB_MutableCoord result, final double f, final double g, final double...x) |
double | dot2D (final WB_Coord p) |
double | absDot2D (final WB_Coord p) |
double | dot (final WB_Coord p) |
double | absDot (final WB_Coord p) |
WB_Vector | cross (final WB_Coord p) |
void | crossInto (final WB_MutableCoord result, final WB_Coord p) |
WB_M33 | tensor (final WB_Coord v) |
double | scalarTriple (final WB_Coord v, final WB_Coord w) |
WB_Vector | addSelf (final WB_Coord p) |
WB_Vector | subSelf (final double...x) |
WB_Vector | subSelf (final WB_Coord v) |
WB_Vector | mulSelf (final double f) |
WB_Vector | divSelf (final double f) |
WB_Vector | addMulSelf (final double f, final double...x) |
WB_Vector | addMulSelf (final double f, final WB_Coord p) |
WB_Vector | addSelf (final double...x) |
WB_Vector | addSelf (final double x, final double y, final double z) |
WB_Vector | mulAddMulSelf (final double f, final double g, final double...x) |
WB_Vector | mulAddMulSelf (final double f, final double g, final WB_Coord p) |
WB_Vector | crossSelf (final WB_Coord p) |
double | normalizeSelf () |
WB_Vector | trimSelf (final double d) |
WB_Vector | apply2D (final WB_Transform2D T) |
WB_Point | applyAsPoint2D (final WB_Transform2D T) |
WB_Vector | applyAsVector2D (final WB_Transform2D T) |
WB_Vector | applyAsNormal2D (final WB_Transform2D T) |
void | apply2DInto (final WB_MutableCoord result, final WB_Transform2D T) |
void | applyAsPoint2DInto (final WB_MutableCoord result, final WB_Transform2D T) |
void | applyAsVector2DInto (final WB_MutableCoord result, final WB_Transform2D T) |
void | applyAsNormal2DInto (final WB_MutableCoord result, final WB_Transform2D T) |
WB_Coord | translate2D (final double px, final double py) |
void | translate2DInto (final WB_MutableCoord result, final double px, final double py) |
WB_Coord | translate2D (final WB_Coord p) |
void | translate2DInto (final WB_MutableCoord result, final WB_Coord p) |
WB_Vector | rotateAboutPoint2D (final double angle, final double px, final double py) |
void | rotateAboutPoint2DInto (final WB_MutableCoord result, final double angle, final double px, final double py) |
WB_Vector | rotateAboutPoint2D (final double angle, final WB_Coord p) |
void | rotateAboutPoint2DInto (final WB_MutableCoord result, final double angle, final WB_Coord p) |
WB_Vector | rotateAboutOrigin2D (final double angle) |
void | rotateAboutOrigin2DInto (final WB_MutableCoord result, final double angle) |
WB_Vector | scale2D (final double f) |
void | scale2DInto (final WB_MutableCoord result, final double f) |
WB_Vector | scale2D (final double fx, final double fy) |
void | scale2DInto (final WB_MutableCoord result, final double fx, final double fy) |
WB_Vector | apply2DSelf (final WB_Transform2D T) |
WB_Vector | applyAsPoint2DSelf (final WB_Transform2D T) |
WB_Vector | applyAsVector2DSelf (final WB_Transform2D T) |
WB_Vector | applyAsNormal2DSelf (final WB_Transform2D T) |
WB_Coord | translate2DSelf (final double px, final double py) |
WB_Coord | translate2DSelf (final WB_Coord p) |
WB_Vector | rotateAboutPoint2DSelf (final double angle, final double px, final double py) |
WB_Vector | rotateAboutPoint2DSelf (final double angle, final WB_Coord p) |
WB_Vector | rotateAboutOrigin2DSelf (final double angle) |
WB_Vector | scale2DSelf (final double f) |
WB_Vector | scale2DSelf (final double fx, final double fy) |
WB_Vector | apply (final WB_Transform T) |
WB_Point | applyAsPoint (final WB_Transform T) |
WB_Vector | applyAsNormal (final WB_Transform T) |
WB_Vector | applyAsVector (final WB_Transform T) |
void | applyInto (final WB_MutableCoord result, final WB_Transform T) |
void | applyAsPointInto (final WB_MutableCoord result, final WB_Transform T) |
void | applyAsNormalInto (final WB_MutableCoord result, final WB_Transform T) |
void | applyAsVectorInto (final WB_MutableCoord result, final WB_Transform T) |
WB_Coord | translate (final double px, final double py, final double pz) |
WB_Coord | translateInto (final WB_MutableCoord result, final double px, final double py, final double pz) |
WB_Coord | translate (final WB_Coord p) |
WB_Coord | translateInto (final WB_MutableCoord result, final WB_Coord p) |
WB_Vector | rotateAboutAxis2P (final double angle, final double p1x, final double p1y, final double p1z, final double p2x, final double p2y, final double p2z) |
void | rotateAboutAxis2PInto (final WB_MutableCoord result, final double angle, final double p1x, final double p1y, final double p1z, final double p2x, final double p2y, final double p2z) |
WB_Vector | rotateAboutAxis2P (final double angle, final WB_Coord p1, final WB_Coord p2) |
void | rotateAboutAxis2PInto (final WB_MutableCoord result, final double angle, final WB_Coord p1, final WB_Coord p2) |
WB_Vector | rotateAboutAxis (final double angle, final double px, final double py, final double pz, final double ax, final double ay, final double az) |
void | rotateAboutAxisInto (final WB_MutableCoord result, final double angle, final double px, final double py, final double pz, final double ax, final double ay, final double az) |
WB_Vector | rotateAboutAxis (final double angle, final WB_Coord p, final WB_Coord a) |
void | rotateAboutAxisInto (final WB_MutableCoord result, final double angle, final WB_Coord p, final WB_Coord a) |
WB_Vector | rotateAboutOrigin (final double angle, final double x, final double y, final double z) |
void | rotateAboutOriginInto (final WB_MutableCoord result, final double angle, final double x, final double y, final double z) |
WB_Vector | rotateAboutOrigin (final double angle, final WB_Coord a) |
void | rotateAboutOriginInto (final WB_MutableCoord result, final double angle, final WB_Coord v) |
WB_Vector | scale (final double f) |
void | scaleInto (final WB_MutableCoord result, final double f) |
WB_Vector | scale (final double fx, final double fy, final double fz) |
void | scaleInto (final WB_MutableCoord result, final double fx, final double fy, final double fz) |
WB_Vector | applySelf (final WB_Transform T) |
WB_Vector | applyAsPointSelf (final WB_Transform T) |
WB_Vector | applyAsVectorSelf (final WB_Transform T) |
WB_Vector | applyAsNormalSelf (final WB_Transform T) |
WB_Coord | translateSelf (final double px, final double py, final double pz) |
WB_Coord | translateSelf (final WB_Coord p) |
WB_Vector | rotateAboutAxis2PSelf (final double angle, final double p1x, final double p1y, final double p1z, final double p2x, final double p2y, final double p2z) |
WB_Vector | rotateAboutAxis2PSelf (final double angle, final WB_Coord p1, final WB_Coord p2) |
WB_Vector | rotateAboutAxisSelf (final double angle, final WB_Coord p, final WB_Coord a) |
WB_Vector | rotateAboutAxisSelf (final double angle, final double px, final double py, final double pz, final double ax, final double ay, final double az) |
WB_Vector | rotateAboutOriginSelf (final double angle, final double x, final double y, final double z) |
WB_Vector | rotateAboutOriginSelf (final double angle, final WB_Coord a) |
WB_Vector | scaleSelf (final double f) |
WB_Vector | scaleSelf (final double fx, final double fy, final double fz) |
void | invert () |
double[] | coords () |
WB_Vector | copy () |
double | getDistance2D (final WB_Coord p) |
double | getSqDistance2D (final WB_Coord p) |
double | getLength2D () |
double | getSqLength2D () |
double | getHeading2D () |
WB_Vector | getOrthoNormal2D () |
boolean | isCollinear2D (final WB_Coord p, final WB_Coord q) |
boolean | isParallel2D (final WB_Coord p) |
boolean | isParallel2D (final WB_Coord p, final double t) |
boolean | isParallelNorm2D (final WB_Coord p) |
boolean | isParallelNorm2D (final WB_Coord p, final double t) |
boolean | isOrthogonal2D (final WB_Coord p) |
boolean | isOrthogonal2D (final WB_Coord p, final double t) |
boolean | isOrthogonalNorm2D (final WB_Coord p) |
boolean | isOrthogonalNorm2D (final WB_Coord p, final double t) |
double | getDistance3D (final WB_Coord p) |
double | getDistance (final WB_Coord p) |
double | getSqDistance3D (final WB_Coord p) |
double | getSqDistance (final WB_Coord p) |
double | getLength3D () |
double | getLength () |
double | getSqLength3D () |
double | getSqLength () |
double | getAngle (final WB_Coord p) |
double | getAngleNorm (final WB_Coord p) |
WB_Vector | getOrthoNormal3D () |
WB_Vector | getOrthoNormal () |
boolean | isCollinear (final WB_Coord p, final WB_Coord q) |
boolean | isParallel (final WB_Coord p) |
boolean | isParallel (final WB_Coord p, final double t) |
boolean | isParallelNorm (final WB_Coord p) |
boolean | isParallelNorm (final WB_Coord p, final double t) |
boolean | isOrthogonal (final WB_Coord p) |
boolean | isOrthogonal (final WB_Coord p, final double t) |
boolean | isOrthogonalNorm (final WB_Coord p) |
boolean | isOrthogonalNorm (final WB_Coord p, final double t) |
boolean | isZero () |
boolean | smallerThan (final WB_Coord otherXYZ) |
int | compareTo (final WB_Coord p) |
int | compareToY1st (final WB_Coord p) |
boolean | equals (final Object o) |
int | hashCode () |
String | toString () |
![]() | |
WB_SimpleVector () | |
WB_SimpleVector (final double x, final double y) | |
WB_SimpleVector (final double x, final double y, final double z) | |
WB_SimpleVector (final double[] x) | |
WB_SimpleVector (final double[] fromPoint, final double[] toPoint) | |
WB_SimpleVector (final WB_Coord v) | |
WB_SimpleVector (final WB_Coord fromPoint, final WB_Coord toPoint) | |
double | getd (final int i) |
float | getf (final int i) |
double | xd () |
double | yd () |
double | zd () |
double | wd () |
float | xf () |
float | yf () |
float | zf () |
float | wf () |
void | setX (final double x) |
void | setY (final double y) |
void | setZ (final double z) |
void | setW (final double w) |
void | setCoord (final int i, final double v) |
void | set (final double x, final double y) |
void | set (final double x, final double y, final double z) |
void | set (final double x, final double y, final double z, final double w) |
void | set (final WB_Coord v) |
int | compareTo (final WB_Coord p) |
int | compareToY1st (final WB_Coord p) |
boolean | equals (final Object o) |
int | hashCode () |
String | toString () |
![]() | |
WB_SimpleVector2D () | |
WB_SimpleVector2D (final double x, final double y) | |
WB_SimpleVector2D (final double[] x) | |
WB_SimpleVector2D (final double[] fromPoint, final double[] toPoint) | |
WB_SimpleVector2D (final WB_Coord v) | |
WB_SimpleVector2D (final WB_Coord fromPoint, final WB_Coord toPoint) | |
double | getd (final int i) |
float | getf (final int i) |
double | xd () |
double | yd () |
double | zd () |
double | wd () |
float | xf () |
float | yf () |
float | zf () |
float | wf () |
void | setX (final double x) |
void | setY (final double y) |
void | setZ (final double z) |
void | setW (final double w) |
void | setCoord (final int i, final double v) |
void | set (final WB_Coord v) |
void | set (final double x, final double y) |
void | set (final double x, final double y, final double z) |
void | set (final double x, final double y, final double z, final double w) |
int | compareTo (final WB_Coord p) |
int | compareToY1st (final WB_Coord p) |
boolean | equals (final Object o) |
int | hashCode () |
String | toString () |
![]() | |
void | setX (double x) |
void | setY (double y) |
void | setZ (double z) |
void | setW (double w) |
void | setCoord (int i, double v) |
void | set (WB_Coord p) |
void | set (double x, double y) |
void | set (double x, double y, double z) |
void | set (double x, double y, double z, double w) |
![]() | |
double | getd (int i) |
float | getf (int i) |
![]() | |
WB_Coord | translateSelf (final double px, final double py, double pz) |
![]() | |
void | applyInto (WB_MutableCoord result, final WB_Transform T) |
WB_Coord | translate (final double px, final double py, double pz) |
WB_Coord | translateInto (final WB_MutableCoord result, final double px, final double py, double pz) |
void | rotateAboutAxis2PInto (WB_MutableCoord result, final double angle, final double p1x, final double p1y, final double p1z, final double p2x, final double p2y, final double p2z) |
void | rotateAboutAxis2PInto (WB_MutableCoord result, final double angle, final WB_Coord p1, final WB_Coord p2) |
void | rotateAboutAxisInto (WB_MutableCoord result, final double angle, final double px, final double py, final double pz, final double ax, final double ay, final double az) |
void | rotateAboutAxisInto (WB_MutableCoord result, final double angle, final WB_Coord p, final WB_Coord a) |
void | rotateAboutOriginInto (WB_MutableCoord result, final double angle, final double x, final double y, final double z) |
void | rotateAboutOriginInto (WB_MutableCoord result, final double angle, final WB_Coord v) |
void | scaleInto (WB_MutableCoord result, final double fx, final double fy, final double fz) |
void | scaleInto (WB_MutableCoord result, final double f) |
![]() | |
void | apply2DInto (WB_MutableCoord result, final WB_Transform2D T) |
void | rotateAboutPoint2DInto (WB_MutableCoord result, final double angle, final double px, final double py) |
void | rotateAboutPoint2DInto (WB_MutableCoord result, final double angle, final WB_Coord p) |
void | rotateAboutOrigin2DInto (WB_MutableCoord result, final double angle) |
void | scale2DInto (WB_MutableCoord result, final double fx, final double fy) |
void | scale2DInto (WB_MutableCoord result, final double f) |
![]() | |
boolean | isCollinear (WB_Coord p, WB_Coord q) |
boolean | isParallel (WB_Coord p) |
boolean | isParallel (WB_Coord p, double tol) |
boolean | isParallelNorm (WB_Coord p) |
boolean | isParallelNorm (WB_Coord p, double tol) |
boolean | isOrthogonal (WB_Coord p) |
boolean | isOrthogonal (WB_Coord p, double tol) |
boolean | isOrthogonalNorm (WB_Coord p) |
boolean | isOrthogonalNorm (WB_Coord p, double tol) |
![]() | |
boolean | isCollinear2D (WB_Coord p, WB_Coord q) |
boolean | isParallel2D (WB_Coord p) |
boolean | isParallel2D (WB_Coord p, double tol) |
boolean | isParallelNorm2D (WB_Coord p) |
boolean | isParallelNorm2D (WB_Coord p, double tol) |
boolean | isOrthogonal2D (WB_Coord p) |
boolean | isOrthogonal2D (WB_Coord p, double tol) |
boolean | isOrthogonalNorm2D (WB_Coord p) |
boolean | isOrthogonalNorm2D (WB_Coord p, double tol) |
Static Public Member Functions | |
static WB_Coord | X () |
static WB_Coord | Y () |
static WB_Coord | Z () |
static WB_Coord | ZERO () |
static WB_Coord | ORIGIN () |
static WB_Vector | add (final WB_Coord p, final WB_Coord q) |
static WB_Vector | sub (final WB_Coord p, final WB_Coord q) |
static WB_Vector | subToVector2D (final WB_Coord p, final WB_Coord q) |
static WB_Vector | subToVector3D (final WB_Coord p, final WB_Coord q) |
static WB_Vector | subToVector2D (final WB_Coord p, final double x, final double y) |
static WB_Vector | subToVector3D (final WB_Coord p, final double x, final double y, final double z) |
static WB_Vector | mul (final WB_Coord p, final double f) |
static WB_Vector | div (final WB_Coord p, final double f) |
static WB_Vector | addMul (final WB_Coord p, final double f, final WB_Coord q) |
static WB_Vector | mulAddMul (final double f, final WB_Coord p, final double g, final WB_Coord q) |
static double | dot2D (final WB_Coord p, final WB_Coord q) |
static double | absDot2D (final WB_Coord p, final WB_Coord q) |
static double | dot (final WB_Coord p, final WB_Coord q) |
static double | absDot (final WB_Coord p, final WB_Coord q) |
static WB_Vector | cross (final WB_Coord p, final WB_Coord q) |
static WB_M33 | tensor (final WB_Coord u, final WB_Coord v) |
static double | scalarTriple (final WB_Coord u, final WB_Coord v, final WB_Coord w) |
static double | getDistance2D (final WB_Coord q, final WB_Coord p) |
static double | getDistance3D (final WB_Coord q, final WB_Coord p) |
static double | getSqDistance2D (final WB_Coord q, final WB_Coord p) |
static double | getSqDistance3D (final WB_Coord q, final WB_Coord p) |
static double | getLength2D (final WB_Coord p) |
static double | getLength3D (final WB_Coord p) |
static double | getSqLength2D (final WB_Coord v) |
static double | getSqLength3D (final WB_Coord v) |
static double | getAngle (final WB_Coord q, final WB_Coord p) |
static double | getAngleNorm (final WB_Coord q, final WB_Coord p) |
static double | getHeading2D (final WB_Coord p) |
static boolean | isCollinear (final WB_Coord o, final WB_Coord p, final WB_Coord q) |
static boolean | isCollinear2D (final WB_Coord o, final WB_Coord p, final WB_Coord q) |
static boolean | isParallel (final WB_Coord p, final WB_Coord q) |
static boolean | isParallel (final WB_Coord p, final WB_Coord q, final double t) |
static boolean | isParallelNorm (final WB_Coord p, final WB_Coord q) |
static boolean | isParallelNorm (final WB_Coord p, final WB_Coord q, final double t) |
static boolean | isParallel2D (final WB_Coord p, final WB_Coord q) |
static boolean | isParallel2D (final WB_Coord p, final WB_Coord q, final double t) |
static boolean | isParallelNorm2D (final WB_Coord p, final WB_Coord q) |
static boolean | isParallelNorm2D (final WB_Coord p, final WB_Coord q, final double t) |
static boolean | isOrthogonal (final WB_Coord p, final WB_Coord q) |
static boolean | isOrthogonal (final WB_Coord p, final WB_Coord q, final double t) |
static boolean | isOrthogonalNorm (final WB_Coord p, final WB_Coord q) |
static boolean | isOrthogonalNorm (final WB_Coord p, final WB_Coord q, final double t) |
static boolean | isOrthogonal2D (final WB_Coord p, final WB_Coord q) |
static boolean | isOrthogonal2D (final WB_Coord p, final WB_Coord q, final double t) |
static boolean | isOrthogonalNorm2D (final WB_Coord p, final WB_Coord q) |
static boolean | isOrthogonalNorm2D (final WB_Coord p, final WB_Coord q, final double t) |
static WB_Vector | getOrthoNormal2D (final WB_Coord p) |
static WB_Vector | getOrthoNormal3D (final WB_Coord p) |
static WB_Vector | interpolate (final WB_Coord v, final WB_Coord w, final double f) |
static WB_Vector | interpolateEaseIn (final WB_Coord v, final WB_Coord w, final double f, final WB_Ease.Ease ease) |
static WB_Vector | interpolateEaseOut (final WB_Coord v, final WB_Coord w, final double f, final WB_Ease.Ease ease) |
static WB_Vector | interpolateEaseInOut (final WB_Coord v, final WB_Coord w, final double f, final WB_Ease.Ease ease) |
![]() | |
static WB_Coord | X () |
static WB_Coord | Y () |
static WB_Coord | Z () |
static WB_Coord | ZERO () |
static WB_Coord | ORIGIN () |
![]() | |
static WB_Coord | X () |
static WB_Coord | Y () |
static WB_Coord | ZERO () |
static WB_Coord | ORIGIN () |
Static Private Attributes | |
static final WB_Coord | X = new WB_SimpleVector(1, 0, 0) |
static final WB_Coord | Y = new WB_SimpleVector(0, 1, 0) |
static final WB_Coord | Z = new WB_SimpleVector(0, 0, 1) |
static final WB_Coord | ORIGIN = new WB_SimpleVector(0, 0, 0) |
static final WB_Coord | ZERO = new WB_SimpleVector(0, 0, 0) |
wblut.geom.WB_Vector.WB_Vector | ( | ) |
wblut.geom.WB_Vector.WB_Vector | ( | final double | x, |
final double | y | ||
) |
x | |
y |
wblut.geom.WB_Vector.WB_Vector | ( | final double | x, |
final double | y, | ||
final double | z | ||
) |
x | |
y | |
z |
wblut.geom.WB_Vector.WB_Vector | ( | final double[] | x | ) |
x |
wblut.geom.WB_Vector.WB_Vector | ( | final double[] | fromPoint, |
final double[] | toPoint | ||
) |
fromPoint | |
toPoint |
wblut.geom.WB_Vector.WB_Vector | ( | final WB_Coord | v | ) |
v |
fromPoint | |
toPoint |
p | |
q |
double wblut.geom.WB_Vector.absDot | ( | final WB_Coord | p | ) |
Absolute value of dot product.
p |
Implements wblut.geom.WB_CoordinateMath3D.
p | |
q |
double wblut.geom.WB_Vector.absDot2D | ( | final WB_Coord | p | ) |
Absolute value of 2D dot product.
p |
Implements wblut.geom.WB_CoordinateMath2D.
p | |
q |
WB_Vector wblut.geom.WB_Vector.add | ( | final double... | x | ) |
void wblut.geom.WB_Vector.addInto | ( | final WB_MutableCoord | result, |
final double... | x | ||
) |
Add coordinate values and store in mutable coordinate.
result | |
x |
Implements wblut.geom.WB_CoordinateMath2D.
void wblut.geom.WB_Vector.addInto | ( | final WB_MutableCoord | result, |
final WB_Coord | p | ||
) |
Add coordinate values and store in mutable coordinate.
result | |
p |
Implements wblut.geom.WB_CoordinateMath2D.
|
static |
p | |
f | |
q |
WB_Vector wblut.geom.WB_Vector.addMul | ( | final double | f, |
final double... | x | ||
) |
Add multiple of coordinate values.
f | multiplier |
x |
Implements wblut.geom.WB_CoordinateMath2D.
Add multiple of coordinate values.
f | |
p |
Implements wblut.geom.WB_CoordinateMath2D.
void wblut.geom.WB_Vector.addMulInto | ( | final WB_MutableCoord | result, |
final double | f, | ||
final double... | x | ||
) |
Add multiple of coordinate values and store in mutable coordinate.
result | |
f | multiplier |
x |
Implements wblut.geom.WB_CoordinateMath2D.
void wblut.geom.WB_Vector.addMulInto | ( | final WB_MutableCoord | result, |
final double | f, | ||
final WB_Coord | p | ||
) |
Add multiple of coordinate values and store in mutable coordinate.
result | |
f | |
p |
Implements wblut.geom.WB_CoordinateMath2D.
WB_Vector wblut.geom.WB_Vector.addMulSelf | ( | final double | f, |
final double... | x | ||
) |
Add multiple of coordinate values.
f | multiplier |
x |
Implements wblut.geom.WB_MutableCoordinateMath3D.
Add multiple of coordinate values.
f | |
p |
Implements wblut.geom.WB_MutableCoordinateMath3D.
WB_Vector wblut.geom.WB_Vector.addSelf | ( | final double... | x | ) |
WB_Vector wblut.geom.WB_Vector.addSelf | ( | final double | x, |
final double | y, | ||
final double | z | ||
) |
WB_Vector wblut.geom.WB_Vector.apply | ( | final WB_Transform | T | ) |
Apply WB_Transform. Mode (point, vector or normal) is decided by implementation.
T |
Implements wblut.geom.WB_CoordinateTransform3D.
WB_Vector wblut.geom.WB_Vector.apply2D | ( | final WB_Transform2D | T | ) |
Apply WB_Transform2D. Mode (point, vector or normal) is decided by implementation.
T |
Implements wblut.geom.WB_CoordinateTransform2D.
void wblut.geom.WB_Vector.apply2DInto | ( | final WB_MutableCoord | result, |
final WB_Transform2D | T | ||
) |
WB_Vector wblut.geom.WB_Vector.apply2DSelf | ( | final WB_Transform2D | T | ) |
WB_Vector wblut.geom.WB_Vector.applyAsNormal | ( | final WB_Transform | T | ) |
Apply WB_Transform as normal.
T |
Implements wblut.geom.WB_CoordinateTransform3D.
WB_Vector wblut.geom.WB_Vector.applyAsNormal2D | ( | final WB_Transform2D | T | ) |
Apply WB_Transform2D as normal.
T |
Implements wblut.geom.WB_CoordinateTransform2D.
void wblut.geom.WB_Vector.applyAsNormal2DInto | ( | final WB_MutableCoord | result, |
final WB_Transform2D | T | ||
) |
WB_Vector wblut.geom.WB_Vector.applyAsNormal2DSelf | ( | final WB_Transform2D | T | ) |
void wblut.geom.WB_Vector.applyAsNormalInto | ( | final WB_MutableCoord | result, |
final WB_Transform | T | ||
) |
WB_Vector wblut.geom.WB_Vector.applyAsNormalSelf | ( | final WB_Transform | T | ) |
WB_Point wblut.geom.WB_Vector.applyAsPoint | ( | final WB_Transform | T | ) |
Apply WB_Transform as point.
T |
Implements wblut.geom.WB_CoordinateTransform3D.
WB_Point wblut.geom.WB_Vector.applyAsPoint2D | ( | final WB_Transform2D | T | ) |
Apply WB_Transform2D as point.
T |
Implements wblut.geom.WB_CoordinateTransform2D.
void wblut.geom.WB_Vector.applyAsPoint2DInto | ( | final WB_MutableCoord | result, |
final WB_Transform2D | T | ||
) |
WB_Vector wblut.geom.WB_Vector.applyAsPoint2DSelf | ( | final WB_Transform2D | T | ) |
void wblut.geom.WB_Vector.applyAsPointInto | ( | final WB_MutableCoord | result, |
final WB_Transform | T | ||
) |
WB_Vector wblut.geom.WB_Vector.applyAsPointSelf | ( | final WB_Transform | T | ) |
WB_Vector wblut.geom.WB_Vector.applyAsVector | ( | final WB_Transform | T | ) |
Apply WB_Transform as vector.
T |
Implements wblut.geom.WB_CoordinateTransform3D.
WB_Vector wblut.geom.WB_Vector.applyAsVector2D | ( | final WB_Transform2D | T | ) |
Apply WB_Transform2D as vector.
T |
Implements wblut.geom.WB_CoordinateTransform2D.
void wblut.geom.WB_Vector.applyAsVector2DInto | ( | final WB_MutableCoord | result, |
final WB_Transform2D | T | ||
) |
WB_Vector wblut.geom.WB_Vector.applyAsVector2DSelf | ( | final WB_Transform2D | T | ) |
void wblut.geom.WB_Vector.applyAsVectorInto | ( | final WB_MutableCoord | result, |
final WB_Transform | T | ||
) |
WB_Vector wblut.geom.WB_Vector.applyAsVectorSelf | ( | final WB_Transform | T | ) |
void wblut.geom.WB_Vector.applyInto | ( | final WB_MutableCoord | result, |
final WB_Transform | T | ||
) |
WB_Vector wblut.geom.WB_Vector.applySelf | ( | final WB_Transform | T | ) |
int wblut.geom.WB_Vector.compareTo | ( | final WB_Coord | p | ) |
int wblut.geom.WB_Vector.compareToY1st | ( | final WB_Coord | p | ) |
p |
double [] wblut.geom.WB_Vector.coords | ( | ) |
WB_Vector wblut.geom.WB_Vector.copy | ( | ) |
p | |
q |
Cross product of this coordinate with other coordinate.
p |
Implements wblut.geom.WB_CoordinateMath3D.
void wblut.geom.WB_Vector.crossInto | ( | final WB_MutableCoord | result, |
final WB_Coord | p | ||
) |
Store cross product of this coordinate with other coordinate in mutable coordinate. coordinate.
result | |
p |
Implements wblut.geom.WB_CoordinateMath3D.
p | |
f |
WB_Vector wblut.geom.WB_Vector.div | ( | final double | f | ) |
void wblut.geom.WB_Vector.divInto | ( | final WB_MutableCoord | result, |
final double | f | ||
) |
Divide by factor and store in mutable coordinate.
result | |
f |
Implements wblut.geom.WB_CoordinateMath2D.
WB_Vector wblut.geom.WB_Vector.divSelf | ( | final double | f | ) |
p | |
q |
double wblut.geom.WB_Vector.dot | ( | final WB_Coord | p | ) |
p | |
q |
double wblut.geom.WB_Vector.dot2D | ( | final WB_Coord | p | ) |
boolean wblut.geom.WB_Vector.equals | ( | final Object | o | ) |
q | |
p |
double wblut.geom.WB_Vector.getAngle | ( | final WB_Coord | p | ) |
q | |
p |
double wblut.geom.WB_Vector.getAngleNorm | ( | final WB_Coord | p | ) |
Angle between two normalized vectors.
p |
Implements wblut.geom.WB_CoordinateMetric2D.
double wblut.geom.WB_Vector.getDistance | ( | final WB_Coord | p | ) |
q | |
p |
double wblut.geom.WB_Vector.getDistance2D | ( | final WB_Coord | p | ) |
q | |
p |
double wblut.geom.WB_Vector.getDistance3D | ( | final WB_Coord | p | ) |
|
static |
p |
double wblut.geom.WB_Vector.getHeading2D | ( | ) |
double wblut.geom.WB_Vector.getLength | ( | ) |
|
static |
p |
double wblut.geom.WB_Vector.getLength2D | ( | ) |
|
static |
p |
double wblut.geom.WB_Vector.getLength3D | ( | ) |
Implements wblut.geom.WB_CoordinateMetric3D.
WB_Vector wblut.geom.WB_Vector.getOrthoNormal | ( | ) |
p |
WB_Vector wblut.geom.WB_Vector.getOrthoNormal2D | ( | ) |
Get 2D vector perpendicular and CCW to this one.
Implements wblut.geom.WB_CoordinateMetric2D.
p |
WB_Vector wblut.geom.WB_Vector.getOrthoNormal3D | ( | ) |
Implements wblut.geom.WB_CoordinateMetric3D.
double wblut.geom.WB_Vector.getSqDistance | ( | final WB_Coord | p | ) |
q | |
p |
double wblut.geom.WB_Vector.getSqDistance2D | ( | final WB_Coord | p | ) |
q | |
p |
double wblut.geom.WB_Vector.getSqDistance3D | ( | final WB_Coord | p | ) |
double wblut.geom.WB_Vector.getSqLength | ( | ) |
|
static |
v |
double wblut.geom.WB_Vector.getSqLength2D | ( | ) |
|
static |
v |
double wblut.geom.WB_Vector.getSqLength3D | ( | ) |
Implements wblut.geom.WB_CoordinateMetric3D.
int wblut.geom.WB_Vector.hashCode | ( | ) |
|
static |
|
static |
|
static |
|
static |
void wblut.geom.WB_Vector.invert | ( | ) |
|
static |
o | |
p | |
q |
p | |
q |
|
static |
o | |
p | |
q |
p | |
q |
p | |
q |
|
static |
p | |
q | |
t |
boolean wblut.geom.WB_Vector.isOrthogonal | ( | final WB_Coord | p | ) |
p |
boolean wblut.geom.WB_Vector.isOrthogonal | ( | final WB_Coord | p, |
final double | t | ||
) |
p | |
t |
p | |
q |
|
static |
p | |
q | |
t |
boolean wblut.geom.WB_Vector.isOrthogonal2D | ( | final WB_Coord | p | ) |
p |
boolean wblut.geom.WB_Vector.isOrthogonal2D | ( | final WB_Coord | p, |
final double | t | ||
) |
p | |
t |
p | |
q |
|
static |
p | |
q | |
t |
boolean wblut.geom.WB_Vector.isOrthogonalNorm | ( | final WB_Coord | p | ) |
p |
boolean wblut.geom.WB_Vector.isOrthogonalNorm | ( | final WB_Coord | p, |
final double | t | ||
) |
p | |
t |
|
static |
p | |
q |
|
static |
p | |
q | |
t |
boolean wblut.geom.WB_Vector.isOrthogonalNorm2D | ( | final WB_Coord | p | ) |
p |
boolean wblut.geom.WB_Vector.isOrthogonalNorm2D | ( | final WB_Coord | p, |
final double | t | ||
) |
p | |
t |
p | |
q |
|
static |
p | |
q | |
t |
boolean wblut.geom.WB_Vector.isParallel | ( | final WB_Coord | p | ) |
p |
boolean wblut.geom.WB_Vector.isParallel | ( | final WB_Coord | p, |
final double | t | ||
) |
p | |
t |
p | |
q |
|
static |
p | |
q | |
t |
boolean wblut.geom.WB_Vector.isParallel2D | ( | final WB_Coord | p | ) |
p |
boolean wblut.geom.WB_Vector.isParallel2D | ( | final WB_Coord | p, |
final double | t | ||
) |
p | |
t |
p | |
q |
|
static |
p | |
q | |
t |
boolean wblut.geom.WB_Vector.isParallelNorm | ( | final WB_Coord | p | ) |
p |
boolean wblut.geom.WB_Vector.isParallelNorm | ( | final WB_Coord | p, |
final double | t | ||
) |
p | |
t |
p | |
q |
|
static |
p | |
q | |
t |
boolean wblut.geom.WB_Vector.isParallelNorm2D | ( | final WB_Coord | p | ) |
p |
boolean wblut.geom.WB_Vector.isParallelNorm2D | ( | final WB_Coord | p, |
final double | t | ||
) |
p | |
t |
boolean wblut.geom.WB_Vector.isZero | ( | ) |
p | |
f |
WB_Vector wblut.geom.WB_Vector.mul | ( | final double | f | ) |
|
static |
f | |
p | |
g | |
q |
Multiply this coordinate by factor f and add other coordinate values multiplied by g.
f | |
g | |
p |
Implements wblut.geom.WB_CoordinateMath2D.
WB_Vector wblut.geom.WB_Vector.mulAddMul | ( | final double | f, |
final double | g, | ||
final double... | x | ||
) |
Multiply this coordinate by factor f and add other coordinate values multiplied by g.
f | |
g | |
x |
Implements wblut.geom.WB_CoordinateMath2D.
void wblut.geom.WB_Vector.mulAddMulInto | ( | final WB_MutableCoord | result, |
final double | f, | ||
final double | g, | ||
final WB_Coord | p | ||
) |
Multiply this coordinate by factor f, add other coordinate values multiplied by g and store result in mutable coordinate.
result | |
f | |
g | |
p |
Implements wblut.geom.WB_CoordinateMath2D.
void wblut.geom.WB_Vector.mulAddMulInto | ( | final WB_MutableCoord | result, |
final double | f, | ||
final double | g, | ||
final double... | x | ||
) |
Multiply this coordinate by factor f, add other coordinate values multiplied by g and store result in mutable coordinate.
result | |
f | |
g | |
x |
Implements wblut.geom.WB_CoordinateMath2D.
WB_Vector wblut.geom.WB_Vector.mulAddMulSelf | ( | final double | f, |
final double | g, | ||
final double... | x | ||
) |
Multiply this coordinate by factor f and add other coordinate values multiplied by g.
f | |
g | |
x |
Implements wblut.geom.WB_MutableCoordinateMath3D.
Multiply this coordinate by factor f and add other coordinate values multiplied by g.
f | |
g | |
p |
Implements wblut.geom.WB_MutableCoordinateMath3D.
void wblut.geom.WB_Vector.mulInto | ( | final WB_MutableCoord | result, |
final double | f | ||
) |
Multiply by factor and store in mutable coordinate.
result | |
f |
Implements wblut.geom.WB_CoordinateMath2D.
WB_Vector wblut.geom.WB_Vector.mulSelf | ( | final double | f | ) |
double wblut.geom.WB_Vector.normalizeSelf | ( | ) |
Normalize this vector. Return the length before normalization. If this vector is degenerate 0 is returned and the vector remains the zero vector.
Implements wblut.geom.WB_MutableCoordinateMath3D.
|
static |
WB_Vector wblut.geom.WB_Vector.rotateAboutAxis | ( | final double | angle, |
final double | px, | ||
final double | py, | ||
final double | pz, | ||
final double | ax, | ||
final double | ay, | ||
final double | az | ||
) |
Rotate around axis defined by point and direction.
angle | |
px | |
py | |
pz | |
ax | |
ay | |
az |
Implements wblut.geom.WB_CoordinateTransform3D.
WB_Vector wblut.geom.WB_Vector.rotateAboutAxis | ( | final double | angle, |
final WB_Coord | p, | ||
final WB_Coord | a | ||
) |
Rotate around axis defined by point and direction.
angle | |
p | |
a |
Implements wblut.geom.WB_CoordinateTransform3D.
WB_Vector wblut.geom.WB_Vector.rotateAboutAxis2P | ( | final double | angle, |
final double | p1x, | ||
final double | p1y, | ||
final double | p1z, | ||
final double | p2x, | ||
final double | p2y, | ||
final double | p2z | ||
) |
Rotate around axis defined by two points.
angle | |
p1x | |
p1y | |
p1z | |
p2x | |
p2y | |
p2z |
Implements wblut.geom.WB_CoordinateTransform3D.
void wblut.geom.WB_Vector.rotateAboutAxis2PInto | ( | final WB_MutableCoord | result, |
final double | angle, | ||
final double | p1x, | ||
final double | p1y, | ||
final double | p1z, | ||
final double | p2x, | ||
final double | p2y, | ||
final double | p2z | ||
) |
void wblut.geom.WB_Vector.rotateAboutAxis2PInto | ( | final WB_MutableCoord | result, |
final double | angle, | ||
final WB_Coord | p1, | ||
final WB_Coord | p2 | ||
) |
WB_Vector wblut.geom.WB_Vector.rotateAboutAxis2PSelf | ( | final double | angle, |
final double | p1x, | ||
final double | p1y, | ||
final double | p1z, | ||
final double | p2x, | ||
final double | p2y, | ||
final double | p2z | ||
) |
angle | |
p1x | |
p1y | |
p1z | |
p2x | |
p2y | |
p2z |
Implements wblut.geom.WB_MutableCoordinateTransform3D.
void wblut.geom.WB_Vector.rotateAboutAxisInto | ( | final WB_MutableCoord | result, |
final double | angle, | ||
final double | px, | ||
final double | py, | ||
final double | pz, | ||
final double | ax, | ||
final double | ay, | ||
final double | az | ||
) |
void wblut.geom.WB_Vector.rotateAboutAxisInto | ( | final WB_MutableCoord | result, |
final double | angle, | ||
final WB_Coord | p, | ||
final WB_Coord | a | ||
) |
WB_Vector wblut.geom.WB_Vector.rotateAboutAxisSelf | ( | final double | angle, |
final double | px, | ||
final double | py, | ||
final double | pz, | ||
final double | ax, | ||
final double | ay, | ||
final double | az | ||
) |
angle | |
px | |
py | |
pz | |
ax | |
ay | |
az |
Implements wblut.geom.WB_MutableCoordinateTransform3D.
WB_Vector wblut.geom.WB_Vector.rotateAboutOrigin | ( | final double | angle, |
final double | x, | ||
final double | y, | ||
final double | z | ||
) |
Rotate around axis defined by origin and direction.
angle | |
x | |
y | |
z |
Implements wblut.geom.WB_CoordinateTransform3D.
Rotate around axis defined by origin and direction.
angle | |
v |
Implements wblut.geom.WB_CoordinateTransform3D.
WB_Vector wblut.geom.WB_Vector.rotateAboutOrigin2D | ( | final double | angle | ) |
Rotate around origin.
angle |
Implements wblut.geom.WB_CoordinateTransform2D.
void wblut.geom.WB_Vector.rotateAboutOrigin2DInto | ( | final WB_MutableCoord | result, |
final double | angle | ||
) |
WB_Vector wblut.geom.WB_Vector.rotateAboutOrigin2DSelf | ( | final double | angle | ) |
void wblut.geom.WB_Vector.rotateAboutOriginInto | ( | final WB_MutableCoord | result, |
final double | angle, | ||
final double | x, | ||
final double | y, | ||
final double | z | ||
) |
void wblut.geom.WB_Vector.rotateAboutOriginInto | ( | final WB_MutableCoord | result, |
final double | angle, | ||
final WB_Coord | v | ||
) |
WB_Vector wblut.geom.WB_Vector.rotateAboutOriginSelf | ( | final double | angle, |
final double | x, | ||
final double | y, | ||
final double | z | ||
) |
WB_Vector wblut.geom.WB_Vector.rotateAboutPoint2D | ( | final double | angle, |
final double | px, | ||
final double | py | ||
) |
Rotate around point.
angle | |
px | |
py |
Implements wblut.geom.WB_CoordinateTransform2D.
Rotate around point.
angle | |
p |
Implements wblut.geom.WB_CoordinateTransform2D.
void wblut.geom.WB_Vector.rotateAboutPoint2DInto | ( | final WB_MutableCoord | result, |
final double | angle, | ||
final double | px, | ||
final double | py | ||
) |
void wblut.geom.WB_Vector.rotateAboutPoint2DInto | ( | final WB_MutableCoord | result, |
final double | angle, | ||
final WB_Coord | p | ||
) |
WB_Vector wblut.geom.WB_Vector.rotateAboutPoint2DSelf | ( | final double | angle, |
final double | px, | ||
final double | py | ||
) |
|
static |
u | |
v | |
w |
Scalar triple: this.(v x w)
v | |
w |
Implements wblut.geom.WB_CoordinateMath3D.
WB_Vector wblut.geom.WB_Vector.scale | ( | final double | f | ) |
WB_Vector wblut.geom.WB_Vector.scale | ( | final double | fx, |
final double | fy, | ||
final double | fz | ||
) |
WB_Vector wblut.geom.WB_Vector.scale2D | ( | final double | f | ) |
WB_Vector wblut.geom.WB_Vector.scale2D | ( | final double | fx, |
final double | fy | ||
) |
Non-uniform scale.
fx | |
fy |
Implements wblut.geom.WB_CoordinateTransform2D.
void wblut.geom.WB_Vector.scale2DInto | ( | final WB_MutableCoord | result, |
final double | f | ||
) |
void wblut.geom.WB_Vector.scale2DInto | ( | final WB_MutableCoord | result, |
final double | fx, | ||
final double | fy | ||
) |
WB_Vector wblut.geom.WB_Vector.scale2DSelf | ( | final double | f | ) |
WB_Vector wblut.geom.WB_Vector.scale2DSelf | ( | final double | fx, |
final double | fy | ||
) |
void wblut.geom.WB_Vector.scaleInto | ( | final WB_MutableCoord | result, |
final double | f | ||
) |
void wblut.geom.WB_Vector.scaleInto | ( | final WB_MutableCoord | result, |
final double | fx, | ||
final double | fy, | ||
final double | fz | ||
) |
WB_Vector wblut.geom.WB_Vector.scaleSelf | ( | final double | f | ) |
WB_Vector wblut.geom.WB_Vector.scaleSelf | ( | final double | fx, |
final double | fy, | ||
final double | fz | ||
) |
boolean wblut.geom.WB_Vector.smallerThan | ( | final WB_Coord | otherXYZ | ) |
otherXYZ |
p | |
q |
WB_Vector wblut.geom.WB_Vector.sub | ( | final double... | x | ) |
Subtract coordinate values.
x |
Implements wblut.geom.WB_CoordinateMath2D.
Subtract coordinate values.
p |
Implements wblut.geom.WB_CoordinateMath2D.
void wblut.geom.WB_Vector.subInto | ( | final WB_MutableCoord | result, |
final double... | x | ||
) |
Subtract coordinate values and store in mutable coordinate.
result | |
x |
Implements wblut.geom.WB_CoordinateMath2D.
void wblut.geom.WB_Vector.subInto | ( | final WB_MutableCoord | result, |
final WB_Coord | p | ||
) |
Subtract coordinate values and store in mutable coordinate.
result | |
p |
Implements wblut.geom.WB_CoordinateMath2D.
WB_Vector wblut.geom.WB_Vector.subSelf | ( | final double... | x | ) |
Subtract coordinate values.
x |
Implements wblut.geom.WB_MutableCoordinateMath3D.
Subtract coordinate values.
p |
Implements wblut.geom.WB_MutableCoordinateMath3D.
p | |
q |
|
static |
p | |
q |
|
static |
u | |
v |
String wblut.geom.WB_Vector.toString | ( | ) |
WB_Coord wblut.geom.WB_Vector.translate | ( | final double | px, |
final double | py, | ||
final double | pz | ||
) |
WB_Coord wblut.geom.WB_Vector.translate2D | ( | final double | px, |
final double | py | ||
) |
void wblut.geom.WB_Vector.translate2DInto | ( | final WB_MutableCoord | result, |
final double | px, | ||
final double | py | ||
) |
void wblut.geom.WB_Vector.translate2DInto | ( | final WB_MutableCoord | result, |
final WB_Coord | p | ||
) |
WB_Coord wblut.geom.WB_Vector.translate2DSelf | ( | final double | px, |
final double | py | ||
) |
WB_Coord wblut.geom.WB_Vector.translateInto | ( | final WB_MutableCoord | result, |
final double | px, | ||
final double | py, | ||
final double | pz | ||
) |
WB_Coord wblut.geom.WB_Vector.translateInto | ( | final WB_MutableCoord | result, |
final WB_Coord | p | ||
) |
3D translate.
result | |
p |
Implements wblut.geom.WB_CoordinateTransform3D.
WB_Coord wblut.geom.WB_Vector.translateSelf | ( | final double | px, |
final double | py, | ||
final double | pz | ||
) |
WB_Vector wblut.geom.WB_Vector.trimSelf | ( | final double | d | ) |
If vector is larger than given value, trim vector.
d |
Implements wblut.geom.WB_MutableCoordinateMath3D.
|
static |
|
static |
|
static |
|
static |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |