In [2]:
using algT
using GeometryTypes
algT.Node

a = algT.Node(0, algT.Pt2D(0., 1.), 1)
@show a
a.parentID = 2
@show a


a = (0, 1, [0.0, 1.0])

a = (0, 2, [0.0, 1.0])

Out[2]:
(0, 2, [0.0, 1.0])

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]:
GeometryTypes.Simplex{2,GeometryTypes.Point{2,Float64}}

In [22]:
Point{2, Float64}


Out[22]:
GeometryTypes.Point{2,Float64}

In [1]:
Point(2, Float64)


UndefVarError: Point not defined

Stacktrace:
 [1] include_string(::String, ::String) at ./loading.jl:522

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]


(intersects(a, b))[1] = false
MethodError: no method matching intersects(::GeometryTypes.Simplex{2,Array{Int64,1}}, ::GeometryTypes.Simplex{2,Array{Int64,1}})

Stacktrace:
 [1] include_string(::String, ::String) at ./loading.jl:522

In [ ]: