A vector handle (see the module documentation): vector in its frame's
coordinates (default [1, 0, 0]), drawn scale times as long (default 1),
in color ([r, g, b] or [r, g, b, a]). Its axes and labels are hidden.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | name |
the frame's name |
||
| real(kind=wp), | intent(in), | optional | :: | vector(3) |
frame coordinates |
|
| real(kind=wp), | intent(in), | optional | :: | color(:) |
[r, g, b] or [r, g, b, a] (0 to 1) |
|
| real(kind=wp), | intent(in), | optional | :: | scale |
display scale (scene units per vector unit; > 0) |
function new_vector_handle(name, vector, color, scale) result(h) character(len=*), intent(in) :: name !! the frame's name real(wp), intent(in), optional :: vector(3) !! frame coordinates real(wp), intent(in), optional :: color(:) !! [r, g, b] or [r, g, b, a] (0 to 1) real(wp), intent(in), optional :: scale !! display scale (scene units per vector unit; > 0) type(VectorHandle) :: h h%ReferenceFrame = ReferenceFrame(name, color) call h%show_decorations(.false.) if (present(vector)) h%vector_ = vector if (present(scale)) then if (scale > 0.0_wp) h%scale_ = scale end if end function new_vector_handle