Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
s2_cells
v1.0.0
S2Cells
CellBase
CellId
InvalidLevel
LatLon
Point
Built with Crystal 1.9.2
2023-10-08 11:34:05 UTC
class
S2Cells::Point
S2Cells::Point
Reference
Object
Defined in:
s2_cells/point.cr
Constructors
.new
(x : Float64, y : Float64, z : Float64)
Instance Method Summary
#abs
#dot_prod
(o : Point)
#largest_abs_component
: UInt64
#x
: Float64
#y
: Float64
#z
: Float64
Constructor Detail
def self.
new
(x : Float64, y : Float64, z : Float64)
#
[
View source
]
Instance Method Detail
def
abs
#
[
View source
]
def
dot_prod
(o :
Point
)
#
[
View source
]
def
largest_abs_component
: UInt64
#
[
View source
]
def
x
: Float64
#
[
View source
]
def
y
: Float64
#
[
View source
]
def
z
: Float64
#
[
View source
]