Uses of Class
org.jlab.geom.prim.Vector3D

Packages that use Vector3D
  • Uses of Vector3D in org.jlab.geom

    Methods in org.jlab.geom that return Vector3D
    Modifier and Type
    Method
    Description
    DetectorHit.getError()
    Returns the position of this hit.
    Constructors in org.jlab.geom with parameters of type Vector3D
    Modifier
    Constructor
    Description
     
    DetectorHit(DetectorId detectorId, int sectorId, int superlayerId, int layerId, int componentId, Point3D hitPosition, Vector3D direction)
     
  • Uses of Vector3D in org.jlab.geom.component

    Methods in org.jlab.geom.component that return Vector3D
    Modifier and Type
    Method
    Description
    PrismaticComponent.getDirection()
    Returns a vector pointing from the midpoint of this component towards the readout end of the component (eg towards the PMT of a scintillator).
  • Uses of Vector3D in org.jlab.geom.detector.alert.AHDC

    Modifier and Type
    Method
    Description
    ConcaveComponent.getDirection()
    Returns a vector pointing from the midpoint of this component towards the readout end of the component (e.g. towards the PMT of a scintillator).
  • Uses of Vector3D in org.jlab.geom.prim

    Methods in org.jlab.geom.prim that return Vector3D
    Modifier and Type
    Method
    Description
    Vector3D.add(double a)
     
    Vector3D.add(Vector3D vector)
    Adds the given vector to this vector.
    Vector3D.asUnit()
    Create unit vector from this
    Arc3D.bisect()
     
    Vector3D.clone()
    Returns a new instance of this vector.
    Vector3D.cross(Vector3D vector)
    Constructs a new Vector3D containing the cross product of this vector and the given vector.
    Line3D.direction()
    direction vector from begin to end point
    Vector3D.divide(double a)
     
    Arc3D.endVector()
    Constructs a new Vector3D from the center point of the circle of the arc to the end point on the arc.
    static Vector3D
    Vector3D.fromSpherical(double r, double phi, double theta)
    Creates a new Vector3D instance from spherical coordinates
    Region3D.getDimension()
     
    Sphere3D.getNormal(double x, double y, double z)
     
    Vector3D.multiply(double a)
     
    Arc3D.normal()
    Returns the vector normal to the circle of the arc.
    Helix3D.normal()
    Returns the direction vector of the central axis.
    Plane3D.normal()
    Returns the normal of this plane.
    Sector3D.normal()
     
    Trap3D.normal()
    Constructs the normal vector to the trapezoid plane, defined from the first three points
    Triangle3D.normal()
    Constructs the unit vector normal to the plane of this Triangle3D.
    Line3D.originDir()
     
    Arc3D.originVector()
    Constructs a new Vector3D from the center point of the cirlce of the arc to the origin point on the arc.
    Line3D.projection(Vector3D v)
    projection of a point onto this line
    Vector3D.projection(Vector3D v)
    Projection of this vector onto another vector
    Vector3D.sub(Vector3D vector)
    Subtracts the given vector from this vector
    Vector3D.subtract(double a)
     
    Line3D.toVector()
    Returns a vector from the origin point to the end point.
    Point3D.toVector3D()
    Constructs a new Vector3D using this points x, y, and z coordinates.
    Point3D.vectorFrom(double x, double y, double z)
    Constructs a new Vector3D point from the point at the given coordinates to this point (this.x-x, this.y-y, this.z-z)
    Point3D.vectorFrom(Point3D point)
    Constructs a new Vector3D pointing from the given point to this point (equivalent to (this.x-point.x, this.y-point.y, this.z-point.z).
    Point3D.vectorTo(double x, double y, double z)
    Constructs a new Vector3D point from this point to the point at the given coordinates (x-this.x, y-this.y, z-this.z)).
    Point3D.vectorTo(Point3D point)
    Constructs a new Vector3D pointing from this point to the given point (equivalent to (point.x-this.x, point.y-this.y, point.z-this.z)).
    Methods in org.jlab.geom.prim with parameters of type Vector3D
    Modifier and Type
    Method
    Description
    Vector3D.add(Vector3D vector)
    Adds the given vector to this vector.
    double
    Vector3D.angle(Vector3D v)
    Angle between this and another vector
    double
    Vector3D.angle(Vector3D vector0, Vector3D vector1)
    Calculates the clockwise angle of rotation from the image of the first given vector to the image of the second given vector projected onto a plane who's normal is this vector and using this vector as an axis.
    double
    Vector3D.compare(Vector3D vector)
    Returns a value greater than or equal to zero proportional to the amount that the two vectors differ.
    void
    Vector3D.copy(Vector3D vector)
    Sets the components of this vector to be equal the components of the given vector.
    Vector3D.cross(Vector3D vector)
    Constructs a new Vector3D containing the cross product of this vector and the given vector.
    double
    Vector3D.dot(Vector3D vector)
    Returns the dot product of this vector and the given vector.
    void
    Path3D.generate(Point3D origin, Vector3D direction, double length, int npoints)
    Modifies the contents of this Path3D such that the path contains the specified number of evenly spaced points, the origin of the path is at the given origin point, the points are collinear along the given direction vector, and the total length of the path is equal to the given length.
    Line3D.projection(Vector3D v)
    projection of a point onto this line
    Vector3D.projection(Vector3D v)
    Projection of this vector onto another vector
    void
    Vector3D.rotate(Vector3D vector, double angle)
    Rotates the given vector clockwise around the axis produced by this vector by the given angle.
    void
    Arc3D.set(Point3D origin, Point3D center, Vector3D normal, double theta)
    Sets the core parameters of this arc to equal the given parameters.
    void
    Helix3D.set(Point3D origin, Point3D center, Vector3D normal, double totalHeight, double loopHeight, boolean clockwise)
    Sets the parameters of this helix.
    void
    Line3D.set(Point3D point, Vector3D direction)
    Sets the line origin at the given point and the end point at the position of the origin point plus the given vector.
    void
    Plane3D.set(Point3D point, Vector3D normal)
    Sets the reference point and normal of this plane to coincide with the given point and vector.
    void
    Point3D.set(Point3D point, Vector3D vector)
    Sets this points coordinates by adding the given vector to the given point.
    void
    Arc3D.setNormal(Vector3D normal)
    Sets the normal of the circle of the arc.
    void
    Helix3D.setNormal(Vector3D normal)
    Sets the orientation of the central axis of the helix.
    void
    Plane3D.setNormal(Vector3D normal)
    Sets the normal of this plane to parallel the given vector.
    Vector3D.sub(Vector3D vector)
    Subtracts the given vector from this vector
    Constructors in org.jlab.geom.prim with parameters of type Vector3D
    Modifier
    Constructor
    Description
     
    Arc3D(Point3D origin, Point3D center, Vector3D normal, double theta)
    Constructs a new Arc3D from the given parameters.
     
    Helix3D(Point3D origin, Point3D center, Vector3D normal, double totalHeight, double loopHeight, boolean clockwise)
    Constructs a helix from the given parameters.
     
    Line3D(Point3D point, Vector3D direction)
    Constructs a new Line3D such that the the given point is at the origin of the line and the vector from the origin to the end of the line is equal to the given vector.
     
    Plane3D(Point3D point, Vector3D normal)
    Constructs a new Plane3D such that the new plane passes through the given point and the normal of the new plane is parallel to the given vector.
     
    Point3D(Point3D point, Vector3D vector)
    Constructs a new Point3D by adding the given vector to the given point.
     
    Constructs a new Point3D with the given vector.
     
    Constructs a new Vector3D identical to the given vector.