pointToWorld method

Vec3 pointToWorld(
  1. Vec3 localPoint,
  2. Vec3? result
)

Get a local point in global transform coordinates.

Implementation

Vec3 pointToWorld(Vec3 localPoint, Vec3? result) {
  result ??= Vec3();
  pointToWorldFrame(position, quaternion, localPoint, result);
  return result;
}