public PointAndTangentFloat(PointFloat point, VectorFloat tangent) { this.point = point; this.tangent = tangent; }
public static RectFloat FromCorners(PointFloat corner1, PointFloat corner2) => FromEdges(corner1.x, corner1.y, corner2.x, corner2.y);
public static RectFloat FromCenter(PointFloat center, float width, float height) => FromCenter(center.x, center.y, width, height);
public static RectFloat FromCenter(PointFloat center, float edgeLength) => FromCenter(center.x, center.y, edgeLength);
public static RectFloat FromCenter(PointFloat center, SizeFloat size) => FromCenter(center.x, center.y, size.width, size.height);
public static RectFloat Offset(RectFloat rect, PointFloat offset) => Offset(rect, offset.x, offset.y);