Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
pg
v0.24.0
PG
BoolArray
CharArray
Connection
Driver
EscapeHelper
Float32Array
Float64Array
Geo
Box
Circle
Line
LineSegment
Path
Point
Polygon
Int16Array
Int32Array
Int64Array
Interval
ListenConnection
Numeric
NumericArray
PGValue
ResultSet
RuntimeError
Statement
StringArray
TimeArray
PQ
ConnectionError
ConnInfo
Field
Notice
Notification
PQError
Built with Crystal 1.9.2
2023-10-08 14:33:54 UTC
struct
PG::Geo::Box
PG::Geo::Box
Struct
Value
Object
Defined in:
pg/geo.cr
Constructors
.new
(x1 : Float64, y1 : Float64, x2 : Float64, y2 : Float64)
Instance Method Summary
#clone
#copy_with
(x1 _x1 = @x1, y1 _y1 = @y1, x2 _x2 = @x2, y2 _y2 = @y2)
#x1
: Float64
#x2
: Float64
#y1
: Float64
#y2
: Float64
Constructor Detail
def self.
new
(x1 : Float64, y1 : Float64, x2 : Float64, y2 : Float64)
#
[
View source
]
Instance Method Detail
def
clone
#
[
View source
]
def
copy_with
(x1 _x1 = @x1, y1 _y1 = @y1, x2 _x2 = @x2, y2 _y2 = @y2)
#
[
View source
]
def
x1
: Float64
#
def
x2
: Float64
#
def
y1
: Float64
#
def
y2
: Float64
#