16 namespace JGEOMETRY3D {}
17 namespace JPP {
using namespace JGEOMETRY3D; }
19 namespace JGEOMETRY3D {
256 return JVector3D(pos).sub(*this).getLengthSquared();
Data structure for vector in two dimensions.
JVector3D & mul(const double factor)
Scale vector.
JVector3D(const JVector2D &vector, const double z)
Constructor.
Auxiliary base class for aritmetic operations of derived class types.
JTOOLS::JRange< double > JRangeX
Type definition of range along x-axis.
double getDistanceSquared(const JVector3D &pos) const
Get squared of distance to point.
double getDistance(const JVector3D &pos) const
Get distance to point.
JTOOLS::JRange< double > JRangeZ
Type definition of range along z-axis.
JVector3D & sub(const JVector3D &vector)
Subtract vector.
Data structure for vector in three dimensions.
bool equals(const JVector3D &vector) const
Check equality.
double getY() const
Get y position.
double getLength() const
Get length.
double getLengthSquared() const
Get length squared.
JVector3D & cross(const JVector3D &first, const JVector3D &second)
Get cross product.
Auxiliary class to define a range between two values.
JTOOLS::JRange< double > JRangeY
Type definition of range along y-axis.
double getX() const
Get x position.
Base class for data structures with artithmetic capabilities.
double getDot(const JVector3D &vector) const
Get dot product.
JVector3D & negate()
Negate vector.
JVector3D & div(const double factor)
Scale vector.
void transform(double &__x, double &__y, double &__z) const
Transform.
double getZ() const
Get z position.
JVector3D & add(const JVector3D &vector)
Add vector.
JVector3D(const double x, const double y, const double z)
Constructor.
JVector3D()
Default constructor.
JVector3D & transform(const JMatrix3D &T)
Transform.