Package com.google.common.geometry
Class BigPoint
java.lang.Object
com.google.common.geometry.BigPoint
- All Implemented Interfaces:
Comparable<BigPoint>
A point consisting of BigDecimal coordinates.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final BigDecimal(package private) final BigDecimal(package private) final BigDecimal -
Constructor Summary
ConstructorsConstructorDescriptionCreates a point of BigDecimal coordinates from a point of double coordinates.BigPoint(BigDecimal x, BigDecimal y, BigDecimal z) Creates a point from the given BigDecimal coordinates. -
Method Summary
Modifier and TypeMethodDescriptionint(package private) BigPointReturns the vector cross product of 'this' with 'that'.(package private) BigDecimalReturns the vector dot product of 'this' with 'that'.(package private) BigDecimalReturns the vector dot product of 'this' with 'that'.booleaninthashCode()(package private) booleanReturns true iff this and 'p' are exactly anti-parallel, antipodal points.(package private) booleanReturns true iff this and 'p' are exactly parallel or anti-parallel.(package private) BigDecimalnorm2()Returns the square of the magnitude of this vector.(package private) S2PointReturns an S2Point by rounding 'this' to double precision.
-
Field Details
-
x
-
y
-
z
-
-
Constructor Details
-
BigPoint
BigPoint(S2Point p) Creates a point of BigDecimal coordinates from a point of double coordinates. -
BigPoint
BigPoint(BigDecimal x, BigDecimal y, BigDecimal z) Creates a point from the given BigDecimal coordinates.
-
-
Method Details
-
toS2Point
S2Point toS2Point()Returns an S2Point by rounding 'this' to double precision. -
crossProd
Returns the vector cross product of 'this' with 'that'. -
dotProd
Returns the vector dot product of 'this' with 'that'. -
dotProd
Returns the vector dot product of 'this' with 'that'. -
isLinearlyDependent
Returns true iff this and 'p' are exactly parallel or anti-parallel. -
isAntipodal
Returns true iff this and 'p' are exactly anti-parallel, antipodal points. -
norm2
BigDecimal norm2()Returns the square of the magnitude of this vector. -
compareTo
- Specified by:
compareToin interfaceComparable<BigPoint>
-
equals
-
hashCode
public int hashCode()
-