-
Returns the sum of this vector and the given vector.
Returns the centroid (the average vector) of the given collection of
vectors.
Returns a new instance with all components set to zero.
Returns a new instance with all components set to the given value.
MVector3d.create(double x,
double y,
double z)
Returns a new instance with the given component values.
Returns a new instance with the same component values as in the given
vector.
Returns the cross product of this vector and the given vector.
Returns the translation component of this matrix.
Interpolates linearly between this vector and the given vector and returns the resulting vector.
Returns a negated copy of this vector.
Returns a normalized copy of this vector.
Vector3d.scale(double scalar)
Returns a copy of this vector scaled by the given scalar.
Returns the difference between this vector and the given vector.
Returns a new 3-dimensional vector with the X and Y components of this
vector and the Z-component set to 0.
Returns a copy of the given vector transformed by this matrix.
Transforms the normal of this matrix by getting the normals of the
inputed parameter.
Returns a list of 3-dimensional vectors with the X and Y components from
the given vectors and the Z component set to 0.
Transforms the points with the transformation matrix.
-
Returns the point on this Segment that is closest to the given point.
Returns a copy of the centroid vector of this bounding box.
Returns the centroid of this polygon.
Returns the cross product of this triangle.
Returns the average vector of the vertices of this polygon.
Returns the normal of this polygon as a vector of unit length.
Projects the given point onto this plane performing an orthogonal
projection.
Returns the point of intersection between this line and the given plane.
Returns the intersection point of this polygon and the given segment.
Returns an optional containing the intersection point between the ray and
the triangle if present, an empty optional otherwise.
Returns the point of intersection between this Segment and the given plane.
Returns the intersection point of this and other Segment.
Returns an optional with the intersection point between the triangle and the
line if present, otherwise an empty optional.
Returns an optional with the intersection point between the triangle and the
ray if present, otherwise an empty optional.
Projects the given point onto this plane in the direction of the given
direction vector.
Samples the given amount of points from the segment.
double
Calculates the distance of a point from this line.
double
Calculates the squared distance of a point from this line.