add convenience constructor for plugins that do not import vecmath

+guard against NPE - manually copied from
eb26a8e8e5c8600e0392463fb8c5b39010afb4b9 due to location change