//
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
//
namespace ImageSharp.Drawing
{
///
/// Extension methods for helping to bridge Shaper2D and ImageSharp primitives.
///
internal static class PointInfoExtensions
{
///
/// Converts a to an ImageSharp .
///
/// The source.
/// A representation of this
public static PointInfo Convert(this SixLabors.Shapes.PointInfo source)
{
return new PointInfo
{
DistanceAlongPath = source.DistanceAlongPath,
DistanceFromPath = source.DistanceFromPath
};
}
}
}