Package | Description |
---|---|
org.lcsim.spacegeom |
Modifier and Type | Class and Description |
---|---|
class |
CartesianTwoPoint
A Cartesian TwoSpacePoint
|
class |
CylindricalTwoPoint
A Cylindrical TwoSpacePoint
|
Modifier and Type | Field and Description |
---|---|
private TwoSpacePoint |
TwoSegment._a |
private TwoSpacePoint |
TwoSegment._b |
Modifier and Type | Method and Description |
---|---|
TwoSpacePoint |
TwoSegment.endPoint()
Fetch the ending point
|
static TwoSpacePoint |
TwoSegment.intersection(TwoSegment a,
TwoSegment b)
return intersection point of two line segments
|
TwoSpacePoint |
TwoSegment.startPoint()
Fetch the starting point
|
Modifier and Type | Method and Description |
---|---|
static double |
TwoD.area2(TwoSpacePoint a,
TwoSpacePoint b,
TwoSpacePoint c)
Twice the signed area of the triangle determined by a,b,c; positive if counterclockwise, negative if clockwisew
|
static int |
TwoD.areaSign(TwoSpacePoint a,
TwoSpacePoint b,
TwoSpacePoint c) |
void |
TwoD.assigndi(TwoSpacePoint p,
TwoSpacePoint a) |
static boolean |
TwoD.between(TwoSpacePoint a,
TwoSpacePoint b,
TwoSpacePoint c)
Determines whether a point is on a line segment define by its endpoints.
|
boolean |
TwoD.between1(TwoSpacePoint a,
TwoSpacePoint b,
TwoSpacePoint c) |
static boolean |
TwoD.collinear(TwoSpacePoint a,
TwoSpacePoint b,
TwoSpacePoint c)
Determines whether a point is on or collinear with a line segment define by its endpoints.
|
static double |
TwoSpacePoint.distance(TwoSpacePoint tsp1,
TwoSpacePoint tsp2) |
boolean |
TwoSpacePoint.equals(TwoSpacePoint tsp)
Checks object equality
|
static boolean |
TwoD.intersect(TwoSpacePoint a,
TwoSpacePoint b,
TwoSpacePoint c,
TwoSpacePoint d)
Determines whether two lines defined by their segments intersect.
|
static boolean |
TwoD.intersectProp(TwoSpacePoint a,
TwoSpacePoint b,
TwoSpacePoint c,
TwoSpacePoint d)
Determines whether two line segments intersect.
|
static boolean |
TwoD.left(TwoSpacePoint a,
TwoSpacePoint b,
TwoSpacePoint c)
Determines whether a point is to the left of a line segment define by its endpoints.
|
static boolean |
TwoD.leftOn(TwoSpacePoint a,
TwoSpacePoint b,
TwoSpacePoint c)
Determines whether a point is to the left or on a line segment define by its endpoints.
|
double |
TwoSegment.minimumDistance(TwoSpacePoint p)
calculate the minimum distance between this segment and a point p
|
boolean |
TwoSpacePoint.notEquals(TwoSpacePoint tsp)
Checks object inequality
|
char |
TwoD.parallelInt(TwoSpacePoint a,
TwoSpacePoint b,
TwoSpacePoint c,
TwoSpacePoint d,
TwoSpacePoint p,
TwoSpacePoint q) |
char |
TwoD.segSegInt(TwoSpacePoint a,
TwoSpacePoint b,
TwoSpacePoint c,
TwoSpacePoint d,
TwoSpacePoint p,
TwoSpacePoint q) |
Constructor and Description |
---|
TwoSegment(TwoSpacePoint a,
TwoSpacePoint b)
Constructor
|
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.