Point.opBinary

Binary operation overload template with scalars

  1. Point opBinary(Point other)
  2. Point opBinary(int scalar)
    struct Point
    const
    opBinary
    (
    string op
    )
    (
    int scalar
    )
    if (
    op == "*" ||
    op == "/"
    )

Meta