# Uses of Class
org.apache.lucene.spatial3d.geom.Vector

Packages that use Vector
Package
Description
org.apache.lucene.spatial3d.geom
Shapes implemented using 3D planar geometry.

## Uses of Vector in org.apache.lucene.spatial3d.geom

Subclasses of Vector in org.apache.lucene.spatial3d.geom
Modifier and Type
Class
Description
`class`
`GeoPoint`
This class represents a point on the surface of a sphere or ellipsoid.
`class`
`Plane`
We know about three kinds of planes.
`class`
`SidedPlane`
Combination of a plane, and a sign value indicating what evaluation values are on the correct side of the plane.
Methods in org.apache.lucene.spatial3d.geom that return Vector
Modifier and Type
Method
Description
`protected static Vector`
Plane.`modify(GeoPoint start, double transX, double transY, double transZ, double sinRA, double cosRA, double sinHA, double cosHA)`
Modify a point to produce a vector in translated/rotated space.
`Vector`
Vector.`normalize()`
Compute a normalized unit vector based on the current vector.
`Vector`
Vector.`rotateXY(double angle)`
Rotate vector counter-clockwise in x-y by an angle.
`Vector`
Vector.`rotateXY(double sinAngle, double cosAngle)`
Rotate vector counter-clockwise in x-y by an angle, expressed as sin and cos.
`Vector`
Vector.`rotateXZ(double angle)`
Rotate vector counter-clockwise in x-z by an angle.
`Vector`
Vector.`rotateXZ(double sinAngle, double cosAngle)`
Rotate vector counter-clockwise in x-z by an angle, expressed as sin and cos.
`Vector`
Vector.`rotateZY(double angle)`
Rotate vector counter-clockwise in z-y by an angle.
`Vector`
Vector.`rotateZY(double sinAngle, double cosAngle)`
Rotate vector counter-clockwise in z-y by an angle, expressed as sin and cos.
`Vector`
Vector.`translate(double xOffset, double yOffset, double zOffset)`
Translate vector.
Methods in org.apache.lucene.spatial3d.geom with parameters of type Vector
Modifier and Type
Method
Description
`double`
GeoPoint.`arcDistance(Vector v)`
Compute an arc distance between two points.
`static SidedPlane`
SidedPlane.`constructNormalizedPerpendicularSidedPlane(Vector insidePoint, Vector normalVector, Vector point1, Vector point2)`
Construct a sided plane from two points and a third normal vector.
`static SidedPlane`
SidedPlane.`constructNormalizedThreePointSidedPlane(Vector insidePoint, Vector point1, Vector point2, Vector point3)`
Construct a sided plane from three points.
`static Plane`
Plane.`constructNormalizedXPlane(Vector... planePoints)`
Construct the most accurate normalized plane through an y-z point and including the X axis.
`static Plane`
Plane.`constructNormalizedYPlane(Vector... planePoints)`
Construct the most accurate normalized plane through an x-z point and including the Y axis.
`static Plane`
Plane.`constructNormalizedZPlane(Vector... planePoints)`
Construct the most accurate normalized plane through an x-y point and including the Z axis.
`static Plane`
Plane.`constructPerpendicularCenterPlaneOnePoint(Plane plane, Vector M)`
Given a plane and one point that is on that plane, find a perpendicular plane that goes through both the origin and the point.
`static Plane`
Plane.`constructPerpendicularCenterPlaneTwoPoints(Vector M, Vector N)`
Given two points, construct a plane that goes through them and the origin.
`static SidedPlane`
SidedPlane.`constructSidedPlaneFromOnePoint(Vector insidePoint, Plane plane, Vector intersectionPoint)`
Construct sided plane from a plane and one point.
`static SidedPlane`
SidedPlane.`constructSidedPlaneFromTwoPoints(Vector insidePoint, Vector upperPoint, Vector lowerPoint)`
Construct sided plane from two points.
`GeoPoint`
PlanetModel.`createSurfacePoint(Vector vector)`
Compute a GeoPoint that's scaled to actually be on the planet surface.
`static boolean`
Vector.`crossProductEvaluateIsZero(Vector A, Vector B, Vector point)`
Evaluate the cross product of two vectors against a point.
`double`
Vector.`dotProduct(Vector v)`
Do a dot product.
`double`
Plane.`evaluate(Vector v)`
Evaluate the plane equation for a given point, as represented by a vector.
`boolean`
Plane.`evaluateIsZero(Vector v)`
Evaluate the plane equation for a given point, as represented by a vector.
`boolean`
Vector.`isNumericallyIdentical(Vector other)`
Compute whether two vectors are numerically identical.
`boolean`
Vector.`isParallel(Vector other)`
Compute whether two vectors are numerically identical.
`boolean`
GeoBaseCompositeShape.`isWithin(Vector point)`
`boolean`
GeoBaseDistanceShape.`isWithin(Vector point)`
`boolean`
GeoBaseMembershipShape.`isWithin(Vector point)`
`default boolean`
Membership.`isWithin(Vector point)`
Check if a point is within this shape.
`boolean`
XYZBounds.`isWithin(Vector v)`
Courtesy method to see if a point is within the bounds.
`double`
Vector.`linearDistance(Vector v)`
Compute the straight-line distance to a point described by the vector taken from the origin.
`double`
Vector.`linearDistanceSquared(Vector v)`
Compute the square of a straight-line distance to a point described by the vector taken from the origin.
`double`
Plane.`normalDistance(Vector v, Membership... bounds)`
Compute normal distance from plane to a vector.
`double`
Vector.`normalDistance(Vector v)`
Compute the normal (perpendicular) distance to a vector described by a vector taken from the origin.
`double`
Plane.`normalDistanceSquared(Vector v, Membership... bounds)`
Compute normal distance squared from plane to a vector.
`double`
Vector.`normalDistanceSquared(Vector v)`
Compute the square of the normal distance to a vector described by a vector taken from the origin.
`boolean`
PlanetModel.`pointOnSurface(Vector v)`
Check if point is on surface.
`boolean`
PlanetModel.`pointOutside(Vector v)`
Check if point is outside surface.
`protected static GeoPoint`
Plane.`reverseModify(PlanetModel planetModel, Vector point, double transX, double transY, double transZ, double sinRA, double cosRA, double sinHA, double cosHA)`
Reverse modify a point to produce a GeoPoint in normal space.
`boolean`
SidedPlane.`strictlyWithin(Vector v)`
Check whether a point is strictly within a plane.
Constructors in org.apache.lucene.spatial3d.geom with parameters of type Vector
Modifier
Constructor
Description
``
`Plane(Vector v, double D)`
Construct a plane with a specific vector, and D offset from origin.
``
`Plane(Vector A, double BX, double BY, double BZ)`
Construct a plane through two points and origin.
``
`Plane(Vector A, Vector B)`
Construct a plane through two points and origin.
``
`SidedPlane(double pX, double pY, double pZ, Vector v, double D)`
Construct a sided plane with a normal vector and offset.
``
`SidedPlane(double pX, double pY, double pZ, Vector A, Vector B)`
Construct a sided plane from a pair of vectors describing points, and including origin, plus a point p which describes the side.
``
`SidedPlane(Vector p, boolean onSide, Vector A, Vector B)`
Construct a sided plane from a pair of vectors describing points, and including origin, plus a point p which describes the side.
``
`SidedPlane(Vector p, double x, double y)`
Construct a sided vertical plane from a point and specified x and y coordinates.
``
`SidedPlane(Vector p, double vX, double vY, double vZ, double D)`
Construct a sided plane with a normal vector and offset.
``
`SidedPlane(Vector p, PlanetModel planetModel, double sinLat)`
Construct a sided plane from a point and a Z coordinate.
``
`SidedPlane(Vector A, Vector B)`
Construct a sided plane from a pair of vectors describing points, and including origin.
``
`SidedPlane(Vector p, Vector v, double D)`
Construct a sided plane with a normal vector and offset.
``
`SidedPlane(Vector p, Vector A, double BX, double BY, double BZ)`
Construct a sided plane from a pair of vectors describing points, and including origin, plus a point p which describes the side.
``
`SidedPlane(Vector p, Vector A, Vector B)`
Construct a sided plane from a pair of vectors describing points, and including origin, plus a point p which describes the side.
``
`Vector(Vector A, double BX, double BY, double BZ)`
Construct a vector that is perpendicular to two other (non-zero) vectors.
``
`Vector(Vector A, Vector B)`
Construct a vector that is perpendicular to two other (non-zero) vectors.