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 P4
Quat.getThetaDirected
(P4 axisAngle) static P4
P4.new4
(float x, float y, float z, float w) static P4
Quat.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 float
Measure.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 float
Measure.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 float
Measure.directedDistanceToPlane
(P3 pt, P4 plane, P3 ptref) final float
Returns the distance between this point and point p1.static float
Measure.distanceToPlane
(P4 plane, T3 pt) static float
Measure.distanceToPlaneD
(P4 plane, float d, P3 pt) static void
static P3
Calculate 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 float
Measure.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 void
Measure.getPlaneThroughPoint
(T3 pt, V3 normal, P4 plane) static P4
Measure.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 boolean
Measure.isInTetrahedron
(P3 pt, P3 ptA, P3 ptB, P3 ptC, P3 ptD, P4 plane, V3 vTemp, V3 vTemp2, boolean fullyEnclosed) static Quat
static 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 TypeMethodDescriptionvoid
void
VolumeData.setDataDistanceToPlane
(P4 plane) void
VolumeData.setMappingPlane
(P4 plane) void
VolumeData.setPlaneParameters
(P4 plane) void
JvxlData.setSurfaceInfo
(P4 thePlane, P3 mapLattice, int nSurfaceInts, String surfaceData) void
JvxlData.setSurfaceInfoFromBitSet
(BS bs, P4 thePlane) void
JvxlData.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) void
ModelSet.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 P4
ScriptEval.getPlaneForObject
(String id, V3 vAB) ScriptParam.getPoint4f
(int i) ScriptParam.hklParameter
(int i, Lst<P3> pts, boolean allowOffset) ScriptParam.planeParameter
(int i, boolean isBest) ScriptParam.planeValue
(T x) static P4
ScriptParam.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) void
Mesh.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 P4
Convert user's {3 2 1} to {1500500500, 1503502501, 0 or 1, 1500501}Methods in org.jmol.util with parameters of type P4Modifier and TypeMethodDescriptionvoid
static String
void
MeshSlicer.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 TypeMethodDescriptionvoid
Viewer.invertAtomCoord
(P3 pt, P4 plane, BS bs, int ringAtomIndex, boolean isClick) void
Viewer.invertSelected
(P3 pt, P4 plane, int iAtom, BS bsAtoms) void
TransformManager.slabInternal
(P4 plane, boolean isDepth)