Uses of Class
javajs.util.P4
Packages that use P4
Package
Description
-
Uses of P4 in javajs.util
Methods in javajs.util that return P4Modifier and TypeMethodDescriptionstatic P4Quat.getThetaDirected(P4 axisAngle) static P4P4.new4(float x, float y, float z, float w) static P4Quat.toPoint4f()Quaternions are saved as {q1, q2, q3, q0} While this may seem odd, it is so that for any point4 -- planes, axisangles, and quaternions -- we can use the first three coordinates to determine the relavent axis the fourth then gives us offset to {0,0,0} (plane), rotation angle (axisangle), and cos(theta/2) (quaternion).Methods in javajs.util with parameters of type P4Modifier and TypeMethodDescriptionstatic floatMeasure.calcBestPlaneThroughPoints(P3[] points, int nPoints, P4 plane) Calculate the best ax + by + cz + d = 0 plane through a number of points using a three-step check for the best plane based on normal distance.static floatMeasure.calcPlaneForMode(P3[] points, int nPoints, P4 plane, char mode) Compact calculation of the best pane using a simple method discussed at https://stackoverflow.com/questions/12299540/plane-fitting-to-4-or-more-xyz-points (A^T A)^-1 A^T B run three times to ensure that at least one is not perpendicular.static floatMeasure.directedDistanceToPlane(P3 pt, P4 plane, P3 ptref) final floatReturns the distance between this point and point p1.static floatMeasure.distanceToPlane(P4 plane, T3 pt) static floatMeasure.distanceToPlaneD(P4 plane, float d, P3 pt) static voidstatic P3Calculate the intersection of a line with a plane.Measure.getIntersectionPP(P4 plane1, P4 plane2) Calculate the line that is the intersection of two planes.static floatMeasure.getPlaneProjection(T3 pt, P4 plane, T3 retPtProj, V3 retNorm) Project a point onto a plane, also returning the normal vector and the directed distance to the plane.static voidMeasure.getPlaneThroughPoint(T3 pt, V3 normal, P4 plane) static P4Measure.getPointsOnPlane(P3[] pts, P4 plane) Based on a set of centering points, returns the list of points on a given plane.Quat.getThetaDirected(P4 axisAngle) static booleanMeasure.isInTetrahedron(P3 pt, P3 ptA, P3 ptB, P3 ptC, P3 ptD, P4 plane, V3 vTemp, V3 vTemp2, boolean fullyEnclosed) static Quatstatic P4 -
Uses of P4 in org.jmol.jvxl.calc
Constructors in org.jmol.jvxl.calc with parameters of type P4ModifierConstructorDescriptionMarchingSquares(VertexDataServer surfaceReader, VolumeData volumeData, P4 thePlane, float[] contoursDiscrete, int nContours, int thisContour, boolean contourFromZero) -
Uses of P4 in org.jmol.jvxl.data
Fields in org.jmol.jvxl.data declared as P4Methods in org.jmol.jvxl.data with parameters of type P4Modifier and TypeMethodDescriptionvoidvoidVolumeData.setDataDistanceToPlane(P4 plane) voidVolumeData.setMappingPlane(P4 plane) voidVolumeData.setPlaneParameters(P4 plane) voidJvxlData.setSurfaceInfo(P4 thePlane, P3 mapLattice, int nSurfaceInts, String surfaceData) voidJvxlData.setSurfaceInfoFromBitSet(BS bs, P4 thePlane) voidJvxlData.setSurfaceInfoFromBitSetPts(BS bs, P4 thePlane, P3 mapLattice) -
Uses of P4 in org.jmol.jvxl.readers
Fields in org.jmol.jvxl.readers declared as P4 -
Uses of P4 in org.jmol.modelset
Methods in org.jmol.modelset with parameters of type P4Modifier and TypeMethodDescriptionAtomCollection.getAtomsNearPlane(float distance, P4 plane) voidModelSet.invertSelected(P3 pt, P4 plane, int iAtom, BS bsAtoms) Carries out a stereochemical inversion through a point, across a plane, or at a chirality center. -
Uses of P4 in org.jmol.render
Fields in org.jmol.render declared as P4 -
Uses of P4 in org.jmol.script
Methods in org.jmol.script that return P4Modifier and TypeMethodDescriptionScriptParam.getHklPlane(T3 pt, float offset, Lst<P3> pts) protected P4ScriptEval.getPlaneForObject(String id, V3 vAB) ScriptParam.getPoint4f(int i) ScriptParam.getPoint4fNoError(int i) ScriptParam.hklParameter(int i, Lst<P3> pts, boolean allowOffset) ScriptParam.planeParameter(int i, boolean isBest) ScriptParam.planeValue(T x) static P4ScriptParam.xyzpParameter(int index) Methods in org.jmol.script with parameters of type P4 -
Uses of P4 in org.jmol.shape
Methods in org.jmol.shape with parameters of type P4Modifier and TypeMethodDescriptionV3[]Mesh.getNormals(T3[] vertices, P4 plane) P3[]Mesh.getOffsetVertices(P4 thePlane) voidMesh.initialize(int lighting, T3[] vertices, P4 plane) -
Uses of P4 in org.jmol.util
Fields in org.jmol.util with type parameters of type P4Methods in org.jmol.util that return P4Modifier and TypeMethodDescriptionstatic P4[]BoxInfo.getBoxFacesFromOABC(P3[] oabc) static P4Convert user's {3 2 1} to {1500500500, 1503502501, 0 or 1, 1500501}Methods in org.jmol.util with parameters of type P4Modifier and TypeMethodDescriptionvoidstatic StringvoidMeshSlicer.getIntersection(float distance, P4 plane, P3[] ptCenters, Lst<P3[]> vData, float[] fData, BS bsSource, MeshSurface meshSurface, boolean andCap, boolean doClean, int tokType, boolean isGhost) Triangulator.intersectPlane(P4 plane, T3[] vertices, int flags) a generic cell - plane intersector -- used for finding the plane through a not static so as to allow JavaScript to not load it as core. -
Uses of P4 in org.jmol.viewer
Methods in org.jmol.viewer with parameters of type P4Modifier and TypeMethodDescriptionvoidViewer.invertAtomCoord(P3 pt, P4 plane, BS bs, int ringAtomIndex, boolean isClick) voidViewer.invertSelected(P3 pt, P4 plane, int iAtom, BS bsAtoms) voidTransformManager.slabInternal(P4 plane, boolean isDepth)