Julia-Arrows(Point3f)

using GLMakie

using LinearAlgebra

ps = [Point3f(x, y, z) for x in -4:2:6 for y in -4:2:6 for z in -4:2:6]

ns = map(p -> 0.1 * Vec3f(p[2], p[3], p[1]), ps)

lengths = norm.(ns)

arrows(

    ps, ns, fxaa=true, # turn on anti-aliasing

    color=lengths,

    linewidth = 0.1, arrowsize = Vec3f(0.2, 0.3, 0.4),

    align = :center, axis=(type=Axis3,)

)


你可能感兴趣的:(Julia-Arrows(Point3f))