In [2]:
using algT
using GeometryTypes
algT.Node
a = algT.Node(0, algT.Pt2D(0., 1.), 1)
@show a
a.parentID = 2
@show a
Out[2]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
include("testRRT.jl")
plotly()
main()
In [ ]:
include("RRT.jl")
In [ ]:
rand(Uniform(0,20))
a = false
b = false
if !a && !b
print("hi")
end
In [ ]:
module fun
using algT
algT.Node
end
In [ ]:
module MyModule
export MyType, foo
type MyType
x
end
bar(x) = 2x
foo(a::MyType) = bar(a.x) + 1
show(io, a::MyType) = print(io, "MyType $(a.x)")
end
module runTest
using MyModule
f= MyModule.MyType(1)
@show f
end
In [ ]:
workspace()
In [20]:
using GeometryTypes
Pt2D{T} = Point{2, Float64}
Line2D{T} = LineSegment{Pt2D}
Out[20]:
In [22]:
Point{2, Float64}
Out[22]:
In [1]:
Point(2, Float64)
In [8]:
using GeometryTypes
a = LineSegment(Point(2.0, 3.0), Point(4.0,4.))
b = LineSegment(Point(1.0, 3.0), Point(3.0,4.))
@show intersects(a,b)[1]
a = LineSegment([2,3], [4,5])
b = LineSegment([1,3], [5,6])
intersects(a,b)[1]
In [ ]: