Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
geometry
v0.2.0
Geometry
Line
Point
Rectangle
Built with Crystal 1.9.2
2023-10-08 14:52:21 UTC
struct
Geometry::Line
Geometry::Line
Struct
Value
Object
Defined in:
geometry/line.cr
Constructors
.new
(a : Geometry::Point, b : Geometry::Point)
Instance Method Summary
#a
: Point
#b
: Point
#length
: Float64
Constructor Detail
def self.
new
(a :
Geometry::Point
, b :
Geometry::Point
)
#
[
View source
]
Instance Method Detail
def
a
:
Point
#
[
View source
]
def
b
:
Point
#
[
View source
]
def
length
: Float64
#
[
View source
]