public static void Draw <C>(Vector3Msg message, Drawing3d drawing, Color color, string label, float size = 0.01f) where C : ICoordinateSpace, new() { Vector3 point = message.From <C>(); drawing.DrawPoint(point, color, size); drawing.DrawLabel(label, point, color, size * 1.5f); }
public static void Draw <C>(Vector3Msg message, Drawing3d drawing, GameObject origin, Color color, string label, float size = 0.01f) where C : ICoordinateSpace, new() { Vector3 point = message.From <C>(); if (origin != null) { point = origin.transform.TransformPoint(point); } drawing.DrawPoint(point, color, size); drawing.DrawLabel(label, point, color, size * 1.5f); }
public static void Draw <C>(PointMsg message, Drawing3d drawing, Color color, float size = 0.01f) where C : ICoordinateSpace, new() { drawing.DrawPoint(message.From <C>(), color, size); }
public static void Draw <C>(Point32Msg message, Drawing3d drawing, Color color, string label, float size = 0.01f) where C : ICoordinateSpace, new() { drawing.DrawPoint(message.From <C>(), color, size); drawing.DrawLabel(label, message.From <C>(), color, size * 1.5f); }