FogOfWar::Line
Inherits JSON::Serializable < Reference < Object
Constants
Color = SF::Color.new(38, 25, 17)
PointLineCollisionPrecision = 0.001
Thickness = 8
Constructors
new(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
add_point(point : Point)
Sourcecollision_with_circle?(cx, cy, r)
Sourcedraw(window : SF::RenderWindow)
Sourcedraw_line(window, point, next_point)
Sourcedraw_point_circle(window, point)
Sourceline_distance(x1, y1, x2, y2)
Sourcepoint_in_circle?(px, py, cx, cy, r)
Sourcepoint_in_line?(x1, y1, x2, y2, px, py)
Sourcepoints
Sourcethickness
Source