Line

2D Line


julia> line = Line2D(PVector2D(), PVector2D(1.0, 0.0))ERROR: UndefVarError: `PVector2D` not defined in `Main` Suggestion: check for spelling errors or missing imports. Hint: a global variable of this name also exists in PhysicalParticles.
julia> len(line)ERROR: UndefVarError: `line` not defined in `Main` Suggestion: add an appropriate import or assignment. This global was declared but not assigned. Hint: a global variable of this name also exists in LLVM.
julia> midpoint(line)ERROR: UndefVarError: `line` not defined in `Main` Suggestion: add an appropriate import or assignment. This global was declared but not assigned. Hint: a global variable of this name also exists in LLVM.
julia> line + PVector(1.0,1.0)ERROR: UndefVarError: `line` not defined in `Main` Suggestion: add an appropriate import or assignment. This global was declared but not assigned. Hint: a global variable of this name also exists in LLVM.
julia> line * 2ERROR: UndefVarError: `line` not defined in `Main` Suggestion: add an appropriate import or assignment. This global was declared but not assigned. Hint: a global variable of this name also exists in LLVM.

3D Space Line

julia> line = Line(PVector(u"m"), PVector(1.0, 0.0, 0.0, u"m"))ERROR: UndefVarError: `PVector` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
Hint: a global variable of this name also exists in PhysicalParticles.
julia> len(line)ERROR: UndefVarError: `line` not defined in `Main` Suggestion: add an appropriate import or assignment. This global was declared but not assigned. Hint: a global variable of this name also exists in LLVM.
julia> midpoint(line)ERROR: UndefVarError: `line` not defined in `Main` Suggestion: add an appropriate import or assignment. This global was declared but not assigned. Hint: a global variable of this name also exists in LLVM.
julia> line + PVector(1.0,2.0,3.0,u"m")ERROR: UndefVarError: `line` not defined in `Main` Suggestion: add an appropriate import or assignment. This global was declared but not assigned. Hint: a global variable of this name also exists in LLVM.
julia> line * 3ERROR: UndefVarError: `line` not defined in `Main` Suggestion: add an appropriate import or assignment. This global was declared but not assigned. Hint: a global variable of this name also exists in LLVM.