| Package | Description | 
|---|---|
| com.solibri.geometry.linearalgebra | |
| com.solibri.geometry.primitive3d | 
| Modifier and Type | Method and Description | 
|---|---|
MVector3d | 
Vector3d.add(Vector3d vector)
Returns the sum of this vector and the given vector. 
 | 
static MVector3d | 
Vector3d.centroidOf(Collection<? extends Vector3d> vectors)
Returns the centroid (the average vector) of the given collection of
 vectors. 
 | 
static MVector3d | 
MVector3d.create()
Returns a new instance with all components set to zero. 
 | 
static MVector3d | 
MVector3d.create(double xyz)
Returns a new instance with all components set to the given value. 
 | 
static MVector3d | 
MVector3d.create(double x,
      double y,
      double z)
Returns a new instance with the given component values. 
 | 
static MVector3d | 
MVector3d.create(Vector3d vector)
Returns a new instance with the same component values as in the given
 vector. 
 | 
MVector3d | 
Vector3d.crossProduct(Vector3d vector)
Returns the cross product of this vector and the given vector. 
 | 
MVector3d | 
Matrix4d.getTranslation()
Returns the translation component of this matrix. 
 | 
MVector3d | 
Vector3d.interpolate(Vector3d vector,
           double alpha)
Interpolates linearly between this vector and the given vector and returns the resulting vector. 
 | 
MVector3d | 
Vector3d.negate()
Returns a negated copy of this vector. 
 | 
MVector3d | 
Vector3d.normalize()
Returns a normalized copy of this vector. 
 | 
MVector3d | 
Vector3d.scale(double scalar)
Returns a copy of this vector scaled by the given scalar. 
 | 
MVector3d | 
Vector3d.subtract(Vector3d vector)
Returns the difference between this vector and the given vector. 
 | 
MVector3d | 
Vector2d.to3dVector()
Returns a new 3-dimensional vector with the X and Y components of this
 vector and the Z-component set to 0. 
 | 
MVector3d | 
Matrix4d.transform(Vector3d vector)
Returns a copy of the given vector transformed by this matrix. 
 | 
MVector3d | 
Matrix4d.transformNormal(Vector3d normal)
Transforms the normal of this matrix by getting the normals of the
 inputed parameter. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static List<MVector3d> | 
MVector3d.to3dVectors(List<? extends Vector2d> vectors)
Returns a list of 3-dimensional vectors with the X and Y components from
 the given vectors and the Z component set to 0. 
 | 
Collection<MVector3d> | 
Matrix4d.transform(Collection<? extends Vector3d> points)
Transforms the points with the transformation matrix. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
MVector3d | 
Segment3d.closestPointTo(Vector3d point)
Returns the point on this Segment that is closest to the given point. 
 | 
MVector3d | 
AABB3d.getCentroid()
Returns a copy of the centroid vector of this bounding box. 
 | 
MVector3d | 
Polygon3d.getCentroid()
Returns the centroid of this polygon. 
 | 
MVector3d | 
Triangle3d.getCrossProduct()
Returns the cross product of this triangle. 
 | 
MVector3d | 
Polygon3d.getMean()
Returns the average vector of the vertices of this polygon. 
 | 
MVector3d | 
Polygon3d.getNormal()
Returns the normal of this polygon as a vector of unit length. 
 | 
MVector3d | 
Plane.project(Vector3d point)
Projects the given point onto this plane performing an orthogonal
 projection. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Optional<MVector3d> | 
Line3d.getIntersectionPoint(Plane plane)
Returns the point of intersection between this line and the given plane. 
 | 
Optional<MVector3d> | 
Triangle3d.intersect(Line3d line)
Returns an optional with the intersection point between the triangle and the
 line if present, otherwise an empty optional. 
 | 
Optional<MVector3d> | 
Segment3d.intersect(Plane plane)
Returns the point of intersection between this Segment and the given plane. 
 | 
Optional<MVector3d> | 
Triangle3d.intersect(Ray3d ray)
Returns an optional with the intersection point between the triangle and the
 ray if present, otherwise an empty optional. 
 | 
Optional<MVector3d> | 
Polygon3d.intersect(Segment3d segment)
Returns the intersection point of this polygon and the given segment. 
 | 
Optional<MVector3d> | 
Segment3d.intersect(Segment3d other)
Returns the intersection point of this and other Segment. 
 | 
Optional<MVector3d> | 
Ray3d.intersect(Triangle3d triangle)
Returns an optional containing the intersection point between the ray and
 the triangle if present, an empty optional otherwise. 
 | 
Optional<MVector3d> | 
Plane.project(Vector3d point,
       Vector3d direction)
Projects the given point onto this plane in the direction of the given
 direction vector. 
 | 
default List<MVector3d> | 
Segment3d.sample(int amount)
Samples the given amount of points from the segment. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
double | 
Line3d.distance(MVector3d point)
Calculates the distance of a point from this line. 
 | 
double | 
Line3d.distanceSqr(MVector3d point)
Calculates the squared distance of a point from this line. 
 | 
Copyright © 2019 Solibri, Inc.. All rights reserved.